projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '13540-add-possibility-to-open-files-in-third-party-apps'
[arvados-workbench2.git]
/
src
/
views-components
/
context-menu
/
action-sets
/
collection-files-item-action-set.ts
diff --git
a/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts
b/src/views-components/context-menu/action-sets/collection-files-item-action-set.ts
index a3bfa0b95cb30736ae8c995fcfa00e3deb463b0f..94f702e822913dda057fa6869925222bd3b7e5ae 100644
(file)
--- a/
src/views-components/context-menu/action-sets/collection-files-item-action-set.ts
+++ b/
src/views-components/context-menu/action-sets/collection-files-item-action-set.ts
@@
-3,17
+3,17
@@
// SPDX-License-Identifier: AGPL-3.0
import { ContextMenuActionSet } from "../context-menu-action-set";
// SPDX-License-Identifier: AGPL-3.0
import { ContextMenuActionSet } from "../context-menu-action-set";
-import { RenameIcon, DownloadIcon, RemoveIcon } from "~/components/icon/icon";
-import { openRenameFileDialog } from "../../rename-file-dialog/rename-file-dialog";
+import { RenameIcon, RemoveIcon } from "~/components/icon/icon";
import { DownloadCollectionFileAction } from "../actions/download-collection-file-action";
import { DownloadCollectionFileAction } from "../actions/download-collection-file-action";
-import { openFileRemoveDialog } from "../../../store/collection-panel/collection-panel-files/collection-panel-files-actions";
+import { openFileRemoveDialog, openRenameFileDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions';
+import { FileViewerActions } from '~/views-components/context-menu/actions/file-viewer-actions';
export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
name: "Rename",
icon: RenameIcon,
execute: (dispatch, resource) => {
export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
name: "Rename",
icon: RenameIcon,
execute: (dispatch, resource) => {
- dispatch<any>(openRenameFileDialog(
resource.name
));
+ dispatch<any>(openRenameFileDialog(
{ name: resource.name, id: resource.uuid }
));
}
}, {
component: DownloadCollectionFileAction,
}
}, {
component: DownloadCollectionFileAction,
@@
-24,4
+24,7
@@
export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
execute: (dispatch, resource) => {
dispatch<any>(openFileRemoveDialog(resource.uuid));
}
execute: (dispatch, resource) => {
dispatch<any>(openFileRemoveDialog(resource.uuid));
}
+}], [{
+ component: FileViewerActions,
+ execute: () => { return; },
}]];
}]];