aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/src/actions/deleteAction.ts4
-rw-r--r--apps/files/src/actions/downloadAction.ts4
-rw-r--r--apps/files/src/actions/editLocallyAction.ts4
-rw-r--r--apps/files/src/actions/favoriteAction.ts4
-rw-r--r--apps/files/src/actions/openFolderAction.ts4
-rw-r--r--apps/files/src/actions/viewInFolderAction.ts4
6 files changed, 12 insertions, 12 deletions
diff --git a/apps/files/src/actions/deleteAction.ts b/apps/files/src/actions/deleteAction.ts
index 20af8573dd9..52dd2f53491 100644
--- a/apps/files/src/actions/deleteAction.ts
+++ b/apps/files/src/actions/deleteAction.ts
@@ -23,7 +23,7 @@ import { emit } from '@nextcloud/event-bus'
import { Permission, Node } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import axios from '@nextcloud/axios'
-import TrashCan from '@mdi/svg/svg/trash-can.svg?raw'
+import TrashCanSvg from '@mdi/svg/svg/trash-can.svg?raw'
import { registerFileAction, FileAction } from '../services/FileAction'
import logger from '../logger.js'
@@ -36,7 +36,7 @@ export const action = new FileAction({
? t('files_trashbin', 'Delete permanently')
: t('files', 'Delete')
},
- iconSvgInline: () => TrashCan,
+ iconSvgInline: () => TrashCanSvg,
enabled(nodes: Node[]) {
return nodes.length > 0 && nodes
diff --git a/apps/files/src/actions/downloadAction.ts b/apps/files/src/actions/downloadAction.ts
index 3801553aeaa..44e9fa4b379 100644
--- a/apps/files/src/actions/downloadAction.ts
+++ b/apps/files/src/actions/downloadAction.ts
@@ -22,7 +22,7 @@
import { emit } from '@nextcloud/event-bus'
import { Permission, Node, FileType } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
-import ArrowDown from '@mdi/svg/svg/arrow-down.svg?raw'
+import ArrowDownSvg from '@mdi/svg/svg/arrow-down.svg?raw'
import { registerFileAction, FileAction } from '../services/FileAction'
import { generateUrl } from '@nextcloud/router'
@@ -48,7 +48,7 @@ const downloadNodes = function(dir: string, nodes: Node[]) {
export const action = new FileAction({
id: 'download',
displayName: () => t('files', 'Download'),
- iconSvgInline: () => ArrowDown,
+ iconSvgInline: () => ArrowDownSvg,
enabled(nodes: Node[]) {
return nodes.length > 0 && nodes
diff --git a/apps/files/src/actions/editLocallyAction.ts b/apps/files/src/actions/editLocallyAction.ts
index 4b42ce519eb..3f042884624 100644
--- a/apps/files/src/actions/editLocallyAction.ts
+++ b/apps/files/src/actions/editLocallyAction.ts
@@ -23,7 +23,7 @@ import { encodePath } from '@nextcloud/paths'
import { Permission, type Node } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import axios from '@nextcloud/axios'
-import DevicesSvg from '@mdi/svg/svg/devices.svg?raw'
+import LaptopSvg from '@mdi/svg/svg/laptop.svg?raw'
import { generateOcsUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
@@ -48,7 +48,7 @@ const openLocalClient = async function(path: string) {
export const action = new FileAction({
id: 'edit-locally',
displayName: () => t('files', 'Edit locally'),
- iconSvgInline: () => DevicesSvg,
+ iconSvgInline: () => LaptopSvg,
// Only works on single files
enabled(nodes: Node[]) {
diff --git a/apps/files/src/actions/favoriteAction.ts b/apps/files/src/actions/favoriteAction.ts
index 5b9ba7f95e6..c15564247e2 100644
--- a/apps/files/src/actions/favoriteAction.ts
+++ b/apps/files/src/actions/favoriteAction.ts
@@ -22,7 +22,7 @@
import { emit } from '@nextcloud/event-bus'
import { translate as t } from '@nextcloud/l10n'
import axios from '@nextcloud/axios'
-import Star from '@mdi/svg/svg/star.svg?raw'
+import StarSvg from '@mdi/svg/svg/star.svg?raw'
import type { Node } from '@nextcloud/files'
import { generateUrl } from '@nextcloud/router'
@@ -77,7 +77,7 @@ export const action = new FileAction({
? t('files', 'Add to favorites')
: t('files', 'Remove from favorites')
},
- iconSvgInline: () => Star,
+ iconSvgInline: () => StarSvg,
enabled(nodes: Node[]) {
// We can only favorite nodes within files
diff --git a/apps/files/src/actions/openFolderAction.ts b/apps/files/src/actions/openFolderAction.ts
index 1d45684deac..ccb3f1a43ea 100644
--- a/apps/files/src/actions/openFolderAction.ts
+++ b/apps/files/src/actions/openFolderAction.ts
@@ -21,7 +21,7 @@
*/
import { Permission, Node, FileType } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
-import Folder from '@mdi/svg/svg/folder.svg?raw'
+import FolderSvg from '@mdi/svg/svg/folder.svg?raw'
import type { Navigation } from '../services/Navigation'
import { join } from 'path'
@@ -34,7 +34,7 @@ export const action = new FileAction({
const displayName = files[0].attributes.displayName || files[0].basename
return t('files', 'Open folder {displayName}', { displayName })
},
- iconSvgInline: () => Folder,
+ iconSvgInline: () => FolderSvg,
enabled(nodes: Node[]) {
// Only works on single node
diff --git a/apps/files/src/actions/viewInFolderAction.ts b/apps/files/src/actions/viewInFolderAction.ts
index 20fd62a37b8..67e276112dc 100644
--- a/apps/files/src/actions/viewInFolderAction.ts
+++ b/apps/files/src/actions/viewInFolderAction.ts
@@ -21,7 +21,7 @@
*/
import { Node, FileType } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
-import FolderMove from '@mdi/svg/svg/folder-move.svg?raw'
+import FolderMoveSvg from '@mdi/svg/svg/folder-move.svg?raw'
import type { Navigation } from '../services/Navigation'
import { join } from 'path'
@@ -32,7 +32,7 @@ export const action = new FileAction({
displayName() {
return t('files', 'View in folder')
},
- iconSvgInline: () => FolderMove,
+ iconSvgInline: () => FolderMoveSvg,
enabled(nodes: Node[]) {
// Only works on single node