From 6621c99d47f27fb6f2bf6146ba17cf439cf22ad9 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 5 Jun 2020 09:38:36 +0100 Subject: [PATCH] Fixed init modals never being started --- src/components/appContent.vue | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/src/components/appContent.vue b/src/components/appContent.vue index d54e6e49..4bce163d 100644 --- a/src/components/appContent.vue +++ b/src/components/appContent.vue @@ -223,23 +223,12 @@ export default { created: function() { if (this.$store.getters.ready) { - this.updatePlugins(); + // Update plugins + this.updatePlugins().then(() => { + // Start initialisation modals + this.startModals(); + }); } - // Watch for host 'ready', then update status - this.unwatchStoreFunction = this.$store.watch( - (state, getters) => { - return getters.ready; - }, - ready => { - if (ready) { - // Update plugins - this.updatePlugins().then(() => { - // Start initialisation modals - this.startModals(); - }); - } - } - ); }, mounted() {