Hide navigation on shared folders

old-stable24^2
Varun Patil 2022-10-28 18:34:17 -07:00
parent 2c40f8d57e
commit d3d3e34808
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,7 @@
'remove-gap': removeOuterGap,
}"
>
<NcAppNavigation>
<NcAppNavigation v-if="showNavigation">
<template id="app-memories-navigation" #list>
<NcAppNavigationItem
:to="{ name: 'timeline' }"
@ -168,6 +168,10 @@ export default class App extends Mixins(GlobalMixin, UserConfig) {
return this.ncVersion >= 25;
}
get showNavigation() {
return this.$route.name !== "folder-share";
}
async beforeMount() {
if ("serviceWorker" in navigator) {
// Use the window load event to keep the page load performant