{
icon: RenameIcon,
name: "Edit collection",
- execute: (dispatch, resource) => {
- dispatch<any>(openCollectionUpdateDialog(resource));
- }
+ execute: (dispatch, resource) => dispatch<any>(openCollectionUpdateDialog(resource))
},
{
icon: ShareIcon,
},
{
component: ToggleTrashAction,
- execute: (dispatch, resource) => {
- dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
- }
+ execute: (dispatch, resource) => dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!))
},
{
icon: CopyIcon,
name: "Copy to project",
- execute: (dispatch, resource) => {
- dispatch<any>(openCollectionCopyDialog(resource));
- },
+ execute: (dispatch, resource) => dispatch<any>(openCollectionCopyDialog(resource))
},
{
icon: DetailsIcon,