aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/MainLayout.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/views/MainLayout.vue')
-rw-r--r--viewer/src/views/MainLayout.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 80778f6..21c9cb6 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -20,8 +20,8 @@
20<template> 20<template>
21 <div :class="{ fullscreen: $uiStore.fullscreen, fullwidth: $uiStore.fullWidth }"> 21 <div :class="{ fullscreen: $uiStore.fullscreen, fullwidth: $uiStore.fullWidth }">
22 <ld-title :gallery-title="$galleryStore.galleryTitle" :current-item="$galleryStore.currentItem" /> 22 <ld-title :gallery-title="$galleryStore.galleryTitle" :current-item="$galleryStore.currentItem" />
23 <panel-top v-if="!isLoading" class="layout layout-top" /> 23 <panel-top v-if="isReady" class="layout layout-top" />
24 <panel-left v-if="!isLoading" class="layout layout-left" /> 24 <panel-left v-if="isReady" class="layout layout-left" />
25 <router-view v-if="!isLoading" ref="content" class="layout layout-content scrollbar" /> 25 <router-view v-if="!isLoading" ref="content" class="layout layout-content scrollbar" />
26 <b-loading :active="isLoading" is-full-page /> 26 <b-loading :active="isLoading" is-full-page />
27 <ld-key-press :keycode="27" @action="$uiStore.toggleFullscreen(false)" /> 27 <ld-key-press :keycode="27" @action="$uiStore.toggleFullscreen(false)" />
@@ -69,6 +69,10 @@ export default class MainLayout extends Vue {
69 .catch(this.displayError); 69 .catch(this.displayError);
70 } 70 }
71 71
72 get isReady() {
73 return !this.isLoading && this.$galleryStore.currentPath !== null;
74 }
75
72 displayError(reason: any) { 76 displayError(reason: any) {
73 this.$buefy.snackbar.open({ 77 this.$buefy.snackbar.open({
74 message: `Error ${reason}`, 78 message: `Error ${reason}`,