File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- import { computed } from 'vue'
1+ import { computed , unref } from 'vue'
22import App from './App.vue'
33import { defineWebApplication , SidebarNavExtension , useRouter } from '@ownclouders/web-pkg'
44
@@ -9,10 +9,6 @@ const appInfo = {
99
1010export default defineWebApplication ( {
1111 setup ( ) {
12- // const { $gettext } = useGettext()
13- // const userStore = useUserStore()
14- // const spacesStore = useSpacesStore()
15-
1612 const router = useRouter ( )
1713
1814 // if the route starts with /files, it has the other sidebar options
@@ -21,6 +17,7 @@ export default defineWebApplication({
2117 path : `/files/${ appInfo . id } ` ,
2218 component : App ,
2319 meta : {
20+ title : `${ appInfo . name } ` ,
2421 authContext : 'user' ,
2522 patchCleanPath : true
2623 }
@@ -39,6 +36,7 @@ export default defineWebApplication({
3936 route : {
4037 path : `/files/${ appInfo . id } `
4138 } ,
39+ isVisible : ( ) => unref ( router . currentRoute ) . path . startsWith ( '/files' ) ,
4240 priority : 30
4341 }
4442 }
You can’t perform that action at this time.
0 commit comments