aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views
diff options
context:
space:
mode:
authorZero~Informatique2020-09-11 00:15:04 +0200
committerG.Fouet2020-09-11 21:53:18 +0200
commite6c2a8d9653ffde924632ca2f260c3a8cddc14ed (patch)
treeccc847bdec26d131ee260203410d7a16a0a6fbcf /viewer/src/views
parentd72e317896bcc2a675d21cec6f286e0b2730d77c (diff)
downloadldgallery-e6c2a8d9653ffde924632ca2f260c3a8cddc14ed.tar.gz
viewer: item display order
github: resolves #28
Diffstat (limited to 'viewer/src/views')
-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}`,