disable clear button when there's nothing to clear

staging
multiple creatures 2019-07-29 15:30:33 -05:00
parent 42bf20d22f
commit 6fa955e8a1
1 changed files with 1 additions and 0 deletions

View File

@ -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' />