|
|
@ -14,8 +14,13 @@ const mapDispatchToProps = (dispatch, { status, items }) => ({
|
|
|
|
onOpen(id, onItemClick, dropdownPlacement) {
|
|
|
|
onOpen(id, onItemClick, dropdownPlacement) {
|
|
|
|
dispatch(isUserTouching() ? openModal('ACTIONS', {
|
|
|
|
dispatch(isUserTouching() ? openModal('ACTIONS', {
|
|
|
|
status,
|
|
|
|
status,
|
|
|
|
actions: items,
|
|
|
|
actions: items.map(
|
|
|
|
onClick: onItemClick,
|
|
|
|
(item, i) => item ? {
|
|
|
|
|
|
|
|
...item,
|
|
|
|
|
|
|
|
name: `${item.text}-${i}`,
|
|
|
|
|
|
|
|
onClick: (e) => { return onItemClick(i, e) },
|
|
|
|
|
|
|
|
} : null
|
|
|
|
|
|
|
|
),
|
|
|
|
}) : openDropdownMenu(id, dropdownPlacement));
|
|
|
|
}) : openDropdownMenu(id, dropdownPlacement));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClose(id) {
|
|
|
|
onClose(id) {
|
|
|
|