summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-11 09:20:24 +0100
committerGitHub <noreply@github.com>2022-11-11 09:20:24 +0100
commit5e796dc6f85b37c8378fe01cfd8ac23222c89eea (patch)
treec21d1c7d226a62f38eb04ca7aa11e46934f91ff5
parent9bc0a6c861e07d0112ef2e5ccd28adeca868bdbe (diff)
Remove “No description added” media warning in edit mode (#20393)v4.0.0rc3
Editing media metadata is not currently possible in edit mode, the button would open the modal but saving the changes would error out.
-rw-r--r--app/javascript/mastodon/features/compose/components/upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/compose/components/upload.js b/app/javascript/mastodon/features/compose/components/upload.js
index 0b2dcf08f30..97ac54da911 100644
--- a/app/javascript/mastodon/features/compose/components/upload.js
+++ b/app/javascript/mastodon/features/compose/components/upload.js
@@ -47,7 +47,7 @@ export default class Upload extends ImmutablePureComponent {
{!isEditingStatus && (<button type='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 type='button' className='icon-button' onClick={this.handleFocalPointClick}><Icon id='info-circle' /> <FormattedMessage id='upload_form.description_missing' defaultMessage='No description added' /></button>
</div>