Skip to content
Permalink
Browse files
Added logic to change the caption of the 'Remove item...' to plural '…
…items' when the number of items selected is greater than 1.
  • Loading branch information
maratbn committed Aug 5, 2018
1 parent 9b0124f commit 894c565
Showing 1 changed file with 2 additions and 1 deletion.
@@ -169,7 +169,8 @@ class ListWidget extends React.Component {
}}/>
<ButtonWidget caption="Edit item..."
isDisabled={ arrItemsSelected.length !== 1 }/>
<ButtonWidget caption="Remove item..."
<ButtonWidget caption={ arrItemsSelected.length > 1 ? "Remove items..."
: "Remove item..." }
isDisabled={ arrItemsSelected.length === 0 }/>
</div>
</div>

0 comments on commit 894c565

Please sign in to comment.