logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 2db53526c94e31c1fe2982da5ca097e24333d6c1
parent: 1f28d40c7840731275ae234d3f6350846dc03809
Author: AA4ch1 <aa4ch1@gmail.com>
Date:   Wed, 10 May 2017 21:41:39 +0900

Fix compose_form.js for #2904 (#2960)


Diffstat:

Mapp/javascript/mastodon/features/compose/components/compose_form.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -176,7 +176,7 @@ class ComposeForm extends ImmutablePureComponent { <div className='compose-form__publish'> <div className='character-counter__wrapper'><CharacterCounter max={500} text={text} /></div> - <div className='compose-form__publish-button-wrapper'><Button text={publishText} onClick={this.handleSubmit} disabled={disabled || text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length > 500 || (text.length !==0 && text.trim().length === 0)} block /></div> + <div className='compose-form__publish-button-wrapper'><Button text={publishText} onClick={this.handleSubmit} disabled={disabled || this.props.is_uploading || text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length > 500 || (text.length !==0 && text.trim().length === 0)} block /></div> </div> </div> </div>