Skip to content

Commit

Permalink
fix(files_trashbin): update @nextcloud/files and adjust api + l10n fix
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Dec 12, 2024
1 parent 7f7019e commit 6a14eb5
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 170 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/views/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)" />
Expand Down
3 changes: 2 additions & 1 deletion apps/files_trashbin/src/fileListActions/emptyTrashAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down
216 changes: 49 additions & 167 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@nextcloud/capabilities": "^1.2.0",
"@nextcloud/dialogs": "^6.0.1",
"@nextcloud/event-bus": "^3.3.1",
"@nextcloud/files": "^3.10.0",
"@nextcloud/files": "^3.10.1",
"@nextcloud/initial-state": "^2.2.0",
"@nextcloud/l10n": "^3.1.0",
"@nextcloud/logger": "^3.0.2",
Expand Down

0 comments on commit 6a14eb5

Please sign in to comment.