diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-02-27 07:37:00 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-03-01 10:01:06 +0100 |
commit | c0a8fb2b59665bd1c3d0ce6b94d451f779fab4b6 (patch) | |
tree | 7b46d3725dee6208409dd8e0d53fe79cca8d51b5 /app/javascript/flavours/glitch/features/report/comment.js | |
parent | c5925756f13398f42fb1a59f8504050d195888a8 (diff) |
[Glitch] Fix report submit button not being disabled during submission in web UI
Port 0883f057531d291e8793bd3113f4331c502ad8cf to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/report/comment.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/report/comment.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/report/comment.js b/app/javascript/flavours/glitch/features/report/comment.js index b2663bbf2..ec261afcb 100644 --- a/app/javascript/flavours/glitch/features/report/comment.js +++ b/app/javascript/flavours/glitch/features/report/comment.js @@ -74,7 +74,7 @@ class Comment extends React.PureComponent { <div className='flex-spacer' /> <div className='report-dialog-modal__actions'> - <Button onClick={this.handleClick}><FormattedMessage id='report.submit' defaultMessage='Submit report' /></Button> + <Button onClick={this.handleClick} disabled={isSubmitting}><FormattedMessage id='report.submit' defaultMessage='Submit report' /></Button> </div> </React.Fragment> ); |