File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ Vue.use(PiniaVuePlugin)
3434const pinia = createPinia ( )
3535
3636// Init Navigation Service
37- const Navigation = getNavigation ( )
37+ // This only works with Vue 2 - with Vue 3 this will not modify the source but return just a oberserver
38+ const Navigation = Vue . observable ( getNavigation ( ) )
3839Vue . prototype . $navigation = Navigation
3940
4041// Init Files App Settings Service
Original file line number Diff line number Diff line change @@ -222,8 +222,7 @@ export default defineComponent({
222222 },
223223
224224 currentView(): View {
225- return (this .$navigation .active
226- || this .$navigation .views .find (view => view .id === ' files' )) as View
225+ return this .$navigation .active || this .$navigation .views .find ((view ) => view .id === (this .$route .params ?.view ?? ' files' ))
227226 },
228227
229228 /**
You can’t perform that action at this time.
0 commit comments