]> source.dussan.org Git - nextcloud-server.git/commit
refactor(files): Adjust `useNavigation` composable to enforce active view
authorFerdinand Thiessen <opensource@fthiessen.de>
Thu, 14 Nov 2024 22:24:47 +0000 (23:24 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Sat, 16 Nov 2024 21:00:30 +0000 (22:00 +0100)
commitc06723c44afbc16cf85d316fb086887c18de09c7
tree514848f120c78b6e1970cf7ff1ba62ef1328dfa2
parent67a02fa611c8a88dc500cff2c93033bb3db436b7
refactor(files): Adjust `useNavigation` composable to enforce active view

In some cases it is guaranteed that we have a proper active view,
e.g. when the file list is loaded (so within FileEntry* components).
This does not change anything but the Typescript types,
so the `currentView` is typed as `View` instead of `View | nullĀ“.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/src/components/FileEntry.vue
apps/files/src/components/FileEntry/FileEntryActions.vue
apps/files/src/components/FileEntry/FileEntryName.vue
apps/files/src/components/FileEntryGrid.vue
apps/files/src/composables/useNavigation.spec.ts
apps/files/src/composables/useNavigation.ts