Merge branch '17782-react-scripts-ts-migration' into main. Closes #17782
[arvados.git] / src / views-components / context-menu / action-sets / trashed-collection-action-set.ts
index c42da1e6f8c013ee7e06b0d406e87170e3a5a6dc..b3d893b4b345ce9ed554d74dc8b895643245059f 100644 (file)
@@ -3,15 +3,17 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { ContextMenuActionSet } from "../context-menu-action-set";
-import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } from '~/components/icon/icon';
-import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
+import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } from 'components/icon/icon';
+import { toggleCollectionTrashed } from "store/trash/trash-actions";
+import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
+import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
 
 export const trashedCollectionActionSet: ContextMenuActionSet = [[
     {
         icon: DetailsIcon,
         name: "View details",
-        execute: (dispatch, resource) => {
-            // add code
+        execute: dispatch => {
+            dispatch<any>(toggleDetailsPanel());
         }
     },
     {
@@ -25,7 +27,7 @@ export const trashedCollectionActionSet: ContextMenuActionSet = [[
         icon: AdvancedIcon,
         name: "Advanced",
         execute: (dispatch, resource) => {
-            // add code
+            dispatch<any>(openAdvancedTabDialog(resource.uuid));
         }
     },
     {