Skip to content

Commit 894c565

Browse files
committed
Added logic to change the caption of the 'Remove item...' to plural 'items' when the number of items selected is greater than 1.
1 parent 9b0124f commit 894c565

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack_in/entry.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ class ListWidget extends React.Component {
169169
}}/>
170170
<ButtonWidget caption="Edit item..."
171171
isDisabled={ arrItemsSelected.length !== 1 }/>
172-
<ButtonWidget caption="Remove item..."
172+
<ButtonWidget caption={ arrItemsSelected.length > 1 ? "Remove items..."
173+
: "Remove item..." }
173174
isDisabled={ arrItemsSelected.length === 0 }/>
174175
</div>
175176
</div>

0 commit comments

Comments
 (0)