mirror of
https://github.com/nextcloud/server.git
synced 2025-04-21 16:21:10 +00:00

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>
17 lines
595 B
TypeScript
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)
|