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 894c565bbdaf5c935b50ddbe7790671b8c1c21ca
Showing with 2 additions and 1 deletion.
  1. +2 −1 webpack_in/entry.jsx
@@ -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.
You can’t perform that action at this time.