advanced-tab-curl-cli-python-examples
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / collection-resource-action-set.ts
index 8665bc1b6b858a29f3e23ced0ba316b35298b5c4..c54d40e4cf6e853851a478cb8e2067e39061e793 100644 (file)
@@ -18,9 +18,7 @@ export const collectionResourceActionSet: ContextMenuActionSet = [[
     {
         icon: RenameIcon,
         name: "Edit collection",
-        execute: (dispatch, resource) => {
-            dispatch<any>(openCollectionUpdateDialog(resource));
-        }
+        execute: (dispatch, resource) => dispatch<any>(openCollectionUpdateDialog(resource))
     },
     {
         icon: ShareIcon,
@@ -44,16 +42,12 @@ export const collectionResourceActionSet: ContextMenuActionSet = [[
     },
     {
         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,