From 44c5f86e438c3651904a1d5c9ccf6cd4089f5f86 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Tue, 30 Jun 2020 17:11:45 -0300 Subject: [PATCH] 15610: Temporarily disables file renaming menu item, until it's fixed. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- .../collection-files-item-action-set.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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 4c6874c6..2ded3736 100644 --- 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,9 +3,9 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "../context-menu-action-set"; -import { RenameIcon, RemoveIcon } from "~/components/icon/icon"; +import { RemoveIcon } from "~/components/icon/icon"; import { DownloadCollectionFileAction } from "../actions/download-collection-file-action"; -import { openFileRemoveDialog, openRenameFileDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions'; +import { openFileRemoveDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions'; import { CollectionFileViewerAction } from '~/views-components/context-menu/actions/collection-file-viewer-action'; @@ -21,13 +21,14 @@ export const readOnlyCollectionFilesItemActionSet: ContextMenuActionSet = [[ ]]; export const collectionFilesItemActionSet: ContextMenuActionSet = readOnlyCollectionFilesItemActionSet.concat([[ - { - name: "Rename", - icon: RenameIcon, - execute: (dispatch, resource) => { - dispatch(openRenameFileDialog({ name: resource.name, id: resource.uuid })); - } - }, + // FIXME: This isn't working. Maybe something related to WebDAV? + // { + // name: "Rename", + // icon: RenameIcon, + // execute: (dispatch, resource) => { + // dispatch(openRenameFileDialog({ name: resource.name, id: resource.uuid })); + // } + // }, { name: "Remove", icon: RemoveIcon, -- 2.30.2