1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from "~/views-components/context-menu/context-menu-action-set";
6 import { AdvancedIcon, RemoveIcon, ShareIcon } from "~/components/icon/icon";
7 import { openFileRemoveDialog, openRenameFileDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions';
8 import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
10 export const repositoryActionSet: ContextMenuActionSet = [[{
13 execute: (dispatch, resource) => {
14 dispatch<any>(openRenameFileDialog({ name: resource.name, id: resource.uuid }));
19 execute: (dispatch, resource) => {
20 dispatch<any>(openRenameFileDialog({ name: resource.name, id: resource.uuid }));
25 execute: (dispatch, resource) => {
26 dispatch<any>(openAdvancedTabDialog(resource.uuid, resource.index));
31 execute: (dispatch, resource) => {
32 dispatch<any>(openFileRemoveDialog(resource.uuid));