aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views
diff options
context:
space:
mode:
authorZero~Informatique2020-09-12 06:26:39 +0200
committerG.Fouet2020-09-12 23:19:44 +0200
commit7a8eba922ad34182628f80cf2496d8654abe91e6 (patch)
tree2428f0d7b10896557ddcdfdd6e00f787d9ad1c58 /viewer/src/views
parent836a67bf6455612af4e6e46450caf5f3b88b8edb (diff)
downloadldgallery-7a8eba922ad34182628f80cf2496d8654abe91e6.tar.gz
viewer: improved network errors handling
Diffstat (limited to 'viewer/src/views')
-rw-r--r--viewer/src/views/MainLayout.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 21c9cb6..d9ae954 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -70,12 +70,12 @@ export default class MainLayout extends Vue {
70 } 70 }
71 71
72 get isReady() { 72 get isReady() {
73 return !this.isLoading && this.$galleryStore.currentPath !== null; 73 return !this.isLoading && this.$galleryStore.config && this.$galleryStore.currentPath !== null;
74 } 74 }
75 75
76 displayError(reason: any) { 76 displayError(reason: any) {
77 this.$buefy.snackbar.open({ 77 this.$buefy.snackbar.open({
78 message: `Error ${reason}`, 78 message: `${reason}`,
79 actionText: "Retry", 79 actionText: "Retry",
80 position: "is-top", 80 position: "is-top",
81 type: "is-danger", 81 type: "is-danger",