app: start with closed nav for shares (fix #553)
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/743/head
parent
e6597844f7
commit
512ffb8656
10
src/App.vue
10
src/App.vue
|
@ -206,11 +206,11 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
hasMobileHeader(): boolean {
|
||||
return this.native && this.showNavigation && this.$route.name === 'timeline';
|
||||
return this.native && this.showNavigation && this.routeIsBase;
|
||||
},
|
||||
|
||||
removeNavGap(): boolean {
|
||||
return this.$route.name === 'map';
|
||||
return this.routeIsMap;
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -278,6 +278,12 @@ export default defineComponent({
|
|||
if (this.native) {
|
||||
document.documentElement.classList.add('native');
|
||||
}
|
||||
|
||||
// Close navigation by default if init is disabled
|
||||
// This is the case for public folder/album shares
|
||||
if (this.$route.query.noinit) {
|
||||
emit('toggle-navigation', { open: false });
|
||||
}
|
||||
},
|
||||
|
||||
async beforeMount() {
|
||||
|
|
Loading…
Reference in New Issue