about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-11 09:20:24 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-12 13:57:41 +0100
commit8ac4165c721cf1c70d1d682e183b169230326f36 (patch)
tree5f19d2a5b03add9a45dc79254e8fcc15c2232681 /app
parent400d1683102c6645c948a823b6108300c178f7d7 (diff)
[Glitch] Remove “No description added” media warning in edit mode
Port 5e796dc6f85b37c8378fe01cfd8ac23222c89eea to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/upload.js b/app/javascript/flavours/glitch/features/compose/components/upload.js
index 94ac6c499..c276d339d 100644
--- a/app/javascript/flavours/glitch/features/compose/components/upload.js
+++ b/app/javascript/flavours/glitch/features/compose/components/upload.js
@@ -48,7 +48,7 @@ export default class Upload extends ImmutablePureComponent {
                 {!isEditingStatus && (<button className='icon-button' onClick={this.handleFocalPointClick}><Icon id='pencil' /> <FormattedMessage id='upload_form.edit' defaultMessage='Edit' /></button>)}
               </div>
 
-              {(media.get('description') || '').length === 0 && (
+              {(media.get('description') || '').length === 0 && !isEditingStatus && (
                 <div className='compose-form__upload__warning'>
                   <button className='icon-button' onClick={this.handleFocalPointClick}><Icon id='info-circle' /> <FormattedMessage id='upload_form.description_missing' defaultMessage='No description added' /></button>
                 </div>