diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-04-04 11:42:41 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-04-06 14:49:32 +0200 |
commit | bdbe4773370aa9f29e4514fb9be73a9f2a033244 (patch) | |
tree | 84d00c776e5cfe0ae2d13c61de8a6c909ae18cf8 /apps/files_trashbin/src | |
parent | 014a57e54174ce9a8f2c55beafad2dd8d1c6a9d0 (diff) | |
download | nextcloud-server-bdbe4773370aa9f29e4514fb9be73a9f2a033244.tar.gz nextcloud-server-bdbe4773370aa9f29e4514fb9be73a9f2a033244.zip |
feat(files): add FileAction service
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_trashbin/src')
-rw-r--r-- | apps/files_trashbin/src/actions/restoreAction.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_trashbin/src/actions/restoreAction.ts b/apps/files_trashbin/src/actions/restoreAction.ts index fe896f6b618..0d309a3f3c6 100644 --- a/apps/files_trashbin/src/actions/restoreAction.ts +++ b/apps/files_trashbin/src/actions/restoreAction.ts @@ -22,11 +22,13 @@ import { emit } from '@nextcloud/event-bus' import { generateRemoteUrl } from '@nextcloud/router' import { getCurrentUser } from '@nextcloud/auth' -import { registerFileAction, Permission, FileAction, Node } from '@nextcloud/files' +import { Permission, Node } 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' + registerFileAction(new FileAction({ id: 'restore', displayName() { |