Hide navigation on shared folders

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

View File

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