0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-04-21 16:21:10 +00:00
nextcloud_server/apps/files_trashbin/src/files-init.ts
Ferdinand Thiessen a60a24e61e
refactor(files_trashbin): restore action refactoring
1. do not rely on magic string but use constant ID for trashbin view
2. add unit tests for restore action

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-11 15:05:44 +01:00

17 lines
595 B
TypeScript

/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { getNavigation, registerFileAction, registerFileListAction } from '@nextcloud/files'
import { restoreAction } from './files_actions/restoreAction.ts'
import { emptyTrashAction } from './files_listActions/emptyTrashAction.ts'
import { trashbinView } from './files_views/trashbinView.ts'
import './trashbin.scss'
const Navigation = getNavigation()
Navigation.register(trashbinView)
registerFileListAction(emptyTrashAction)
registerFileAction(restoreAction)