Hide navigation on shared folders
parent
2c40f8d57e
commit
d3d3e34808
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue