diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-12-12 10:44:02 +0100 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-12-12 10:08:38 -0800 |
commit | 9c08d3b0b8cd0f2443d81e82eb5b50731fd92f9f (patch) | |
tree | acbb6ae252131883e4ff48b289bf0feb9228c840 /apps | |
parent | 943023a3f49c12e197103d9bd1fbc07ee99aca13 (diff) | |
download | nextcloud-server-9c08d3b0b8cd0f2443d81e82eb5b50731fd92f9f.tar.gz nextcloud-server-9c08d3b0b8cd0f2443d81e82eb5b50731fd92f9f.zip |
fix(files_trashbin): update @nextcloud/files and adjust api + l10n fix
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/views/FilesList.vue | 2 | ||||
-rw-r--r-- | apps/files_trashbin/src/fileListActions/emptyTrashAction.ts | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index 16764501038..4f7945881d9 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -45,7 +45,7 @@ <NcActionButton v-for="action in enabledFileListActions" :key="action.id" close-after-click - @click="action.exec(currentView, dirContents, { folder: currentFolder })"> + @click="action.exec(currentView, dirContents, currentFolder)"> <template #icon> <NcIconSvgWrapper v-if="action.iconSvgInline !== undefined" :svg="action.iconSvgInline(currentView)" /> diff --git a/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts b/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts index 7c033080c0e..b0a2fbdd2c2 100644 --- a/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts +++ b/apps/files_trashbin/src/fileListActions/emptyTrashAction.ts @@ -7,6 +7,7 @@ import type { Node } from '@nextcloud/files' import PQueue from 'p-queue' import { FileListAction } from '@nextcloud/files' +import { t } from '@nextcloud/l10n' import { DialogSeverity, getDialogBuilder, @@ -72,7 +73,7 @@ export const emptyTrashAction = new FileListAction({ displayName: () => t('files_trashbin', 'Empty deleted files'), order: 0, - enabled: (view, nodes, { folder }) => { + enabled: (view, nodes, folder) => { if (view.id !== 'trashbin') { return false } |