diff options
Diffstat (limited to 'apps/files/src/composables/useNavigation.ts')
-rw-r--r-- | apps/files/src/composables/useNavigation.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/src/composables/useNavigation.ts b/apps/files/src/composables/useNavigation.ts index 2fff5633e23..714b3a6d7b2 100644 --- a/apps/files/src/composables/useNavigation.ts +++ b/apps/files/src/composables/useNavigation.ts @@ -6,6 +6,7 @@ import type { View } from '@nextcloud/files' import type { ShallowRef } from 'vue' import { getNavigation } from '@nextcloud/files' +import { subscribe } from '@nextcloud/event-bus' import { onMounted, onUnmounted, shallowRef, triggerRef } from 'vue' /** @@ -35,6 +36,7 @@ export function useNavigation() { onMounted(() => { navigation.addEventListener('update', onUpdateViews) navigation.addEventListener('updateActive', onUpdateActive) + subscribe('files:navigation:updated', onUpdateViews) }) onUnmounted(() => { navigation.removeEventListener('update', onUpdateViews) |