diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-11-23 21:22:45 +0100 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2023-11-24 16:26:23 +0100 |
commit | 3727a18deb38961b049fdc1c88e608168bb9e26e (patch) | |
tree | 692bb40693b853da81ff2482bfcedbcfbdb4c2ce /apps/files/src/actions | |
parent | 2f1dfc8bcc61e2dd91e02ad167464251db384103 (diff) | |
download | nextcloud-server-3727a18deb38961b049fdc1c88e608168bb9e26e.tar.gz nextcloud-server-3727a18deb38961b049fdc1c88e608168bb9e26e.zip |
fix(files): Use SVG as FilePicker icons instead of Vue components
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src/actions')
-rw-r--r-- | apps/files/src/actions/moveOrCopyAction.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/src/actions/moveOrCopyAction.ts b/apps/files/src/actions/moveOrCopyAction.ts index 07ffcfc052f..17e9370e8d9 100644 --- a/apps/files/src/actions/moveOrCopyAction.ts +++ b/apps/files/src/actions/moveOrCopyAction.ts @@ -35,9 +35,8 @@ import { translate as t } from '@nextcloud/l10n' import axios from '@nextcloud/axios' import Vue from 'vue' -import CopyIcon from 'vue-material-design-icons/FileMultiple.vue' +import CopyIconSvg from '@mdi/svg/svg/folder-multiple.svg?raw' import FolderMoveSvg from '@mdi/svg/svg/folder-move.svg?raw' -import MoveIcon from 'vue-material-design-icons/FolderMove.vue' import { MoveCopyAction, canCopy, canMove, getQueue } from './moveOrCopyActionUtils' import logger from '../logger' @@ -170,7 +169,7 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', node: buttons.push({ label: target ? t('files', 'Copy to {target}', { target }) : t('files', 'Copy'), type: 'primary', - icon: CopyIcon, + icon: CopyIconSvg, async callback(destination: Node[]) { try { await handleCopyMoveNodeTo(node, destination[0], MoveCopyAction.COPY) @@ -186,12 +185,13 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', node: buttons.push({ label: target ? t('files', 'Move to {target}', { target }) : t('files', 'Move'), type: action === MoveCopyAction.MOVE ? 'primary' : 'secondary', - icon: MoveIcon, + icon: FolderMoveSvg, async callback(destination: Node[]) { try { await handleCopyMoveNodeTo(node, destination[0], MoveCopyAction.MOVE) resolve(true) } catch (error) { + console.warn('got error', error) reject(error) } }, |