From fa50f6ce14f60fa0b46cd20f9bfa0e8210754020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Thu, 22 Jun 2023 11:37:02 +0200 Subject: [PATCH] fix(files): restore action tslint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files_trashbin/src/actions/restoreAction.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/files_trashbin/src/actions/restoreAction.ts b/apps/files_trashbin/src/actions/restoreAction.ts index bff1e547efe..1b14efd545d 100644 --- a/apps/files_trashbin/src/actions/restoreAction.ts +++ b/apps/files_trashbin/src/actions/restoreAction.ts @@ -27,8 +27,9 @@ 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.ts' +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', @@ -69,8 +70,8 @@ registerFileAction(new FileAction({ return false } }, - async execBatch(nodes: Node[], view) { - return Promise.all(nodes.map(node => this.exec(node, view))) + async execBatch(nodes: Node[], view: Navigation, dir: string) { + return Promise.all(nodes.map(node => this.exec(node, view, dir))) }, order: 1,