aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/views/files.ts
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-18 10:59:14 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-23 14:03:50 +0200
commitb4e71ad0fb282fbc9981924b9783ae6659a9e4fe (patch)
treeac0a921804b87d6c5707dc87c3041938aec505a6 /apps/files/src/views/files.ts
parentc9a197e6dd699942b0cf36504ff1fa5f5ef26893 (diff)
downloadnextcloud-server-b4e71ad0fb282fbc9981924b9783ae6659a9e4fe.tar.gz
nextcloud-server-b4e71ad0fb282fbc9981924b9783ae6659a9e4fe.zip
chore: use Navigation from `@nextcloud/files`
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/views/files.ts')
-rw-r--r--apps/files/src/views/files.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/files/src/views/files.ts b/apps/files/src/views/files.ts
index baafc8572c2..a535481a061 100644
--- a/apps/files/src/views/files.ts
+++ b/apps/files/src/views/files.ts
@@ -19,16 +19,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-import type { NavigationService, Navigation } from '../services/Navigation'
-
import { translate as t } from '@nextcloud/l10n'
import FolderSvg from '@mdi/svg/svg/folder.svg?raw'
import { getContents } from '../services/Files'
+import { View, getNavigation } from '@nextcloud/files'
export default () => {
- const Navigation = window.OCP.Files.Navigation as NavigationService
- Navigation.register({
+ const Navigation = getNavigation()
+ Navigation.register(new View({
id: 'files',
name: t('files', 'All files'),
caption: t('files', 'List of your files and folders.'),
@@ -37,5 +36,5 @@ export default () => {
order: 0,
getContents,
- } as Navigation)
+ }))
}