]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix media description button being disabled at 420 characters instead of...
authorThibG <thib@sitedethib.com>
Fri, 13 Sep 2019 22:52:56 +0000 (00:52 +0200)
committerThibaut Girka <thib@sitedethib.com>
Wed, 18 Sep 2019 15:27:23 +0000 (17:27 +0200)
Port c00ab575b7450f133946fb94d7367b5d810a2d89 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/ui/components/focal_point_modal.js

index ced7bd238d8dff8ace5d4357b0d3417d604a8231..8bded391a8f497efba27385677b2a8712cd95f2a 100644 (file)
@@ -226,7 +226,7 @@ class FocalPointModal extends ImmutablePureComponent {
               <CharacterCounter max={1500} text={detecting ? '' : description} />
             </div>
 
-            <Button disabled={!dirty || detecting || length(description) > 420} text={intl.formatMessage(messages.apply)} onClick={this.handleSubmit} />
+            <Button disabled={!dirty || detecting || length(description) > 1500} text={intl.formatMessage(messages.apply)} onClick={this.handleSubmit} />
           </div>
 
           <div className='focal-point-modal__content'>