From 6fa955e8a1230ffdba48edec0b22129cb80e76e9 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 29 Jul 2019 15:30:33 -0500 Subject: [PATCH] disable clear button when there's nothing to clear --- .../flavours/glitch/features/compose/components/publisher.js | 1 + 1 file changed, 1 insertion(+) 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={