diff options
Diffstat (limited to 'apps/files_trashbin/src/actions/restoreAction.ts')
-rw-r--r-- | apps/files_trashbin/src/actions/restoreAction.ts | 5 |
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))) }, |