diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-29 15:30:33 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-29 15:30:33 -0500 |
commit | 6fa955e8a1230ffdba48edec0b22129cb80e76e9 (patch) | |
tree | 414afb48b61c780d0549a64721c1d5682f3ac8c3 /app/javascript/flavours | |
parent | 42bf20d22f240d8073942449b318ac4a436715f5 (diff) |
disable clear button when there's nothing to clear
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/publisher.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/publisher.js b/app/javascript/flavours/glitch/features/compose/components/publisher.js index 6796bd595..012a70df4 100644 --- a/app/javascript/flavours/glitch/features/compose/components/publisher.js +++ b/app/javascript/flavours/glitch/features/compose/components/publisher.js @@ -58,6 +58,7 @@ class Publisher extends ImmutablePureComponent { className='clear' onClick={onClearAll} title={intl.formatMessage(messages.clear)} + disabled={disabled || diff < 0} text={ <span> <Icon icon='trash-o' /> |