aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/src/actions/restoreAction.ts
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-18 10:59:14 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-23 14:03:50 +0200
commitb4e71ad0fb282fbc9981924b9783ae6659a9e4fe (patch)
treeac0a921804b87d6c5707dc87c3041938aec505a6 /apps/files_trashbin/src/actions/restoreAction.ts
parentc9a197e6dd699942b0cf36504ff1fa5f5ef26893 (diff)
downloadnextcloud-server-b4e71ad0fb282fbc9981924b9783ae6659a9e4fe.tar.gz
nextcloud-server-b4e71ad0fb282fbc9981924b9783ae6659a9e4fe.zip
chore: use Navigation from `@nextcloud/files`
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_trashbin/src/actions/restoreAction.ts')
-rw-r--r--apps/files_trashbin/src/actions/restoreAction.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_trashbin/src/actions/restoreAction.ts b/apps/files_trashbin/src/actions/restoreAction.ts
index 1b14efd545d..ce8b4077195 100644
--- a/apps/files_trashbin/src/actions/restoreAction.ts
+++ b/apps/files_trashbin/src/actions/restoreAction.ts
@@ -22,14 +22,13 @@
import { emit } from '@nextcloud/event-bus'
import { generateRemoteUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
-import { Permission, Node } from '@nextcloud/files'
+import { Permission, Node, View } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import axios from '@nextcloud/axios'
import History from '@mdi/svg/svg/history.svg?raw'
import { registerFileAction, FileAction } from '../../../files/src/services/FileAction'
import logger from '../../../files/src/logger.js'
-import type { Navigation } from '../../../files/src/services/Navigation'
registerFileAction(new FileAction({
id: 'restore',
@@ -70,7 +69,7 @@ registerFileAction(new FileAction({
return false
}
},
- async execBatch(nodes: Node[], view: Navigation, dir: string) {
+ async execBatch(nodes: Node[], view: View, dir: string) {
return Promise.all(nodes.map(node => this.exec(node, view, dir)))
},