From 7a8eba922ad34182628f80cf2496d8654abe91e6 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 12 Sep 2020 06:26:39 +0200 Subject: viewer: improved network errors handling --- viewer/src/views/MainLayout.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/views') 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 { } get isReady() { - return !this.isLoading && this.$galleryStore.currentPath !== null; + return !this.isLoading && this.$galleryStore.config && this.$galleryStore.currentPath !== null; } displayError(reason: any) { this.$buefy.snackbar.open({ - message: `Error ${reason}`, + message: `${reason}`, actionText: "Retry", position: "is-top", type: "is-danger", -- cgit v1.2.3