Fixed init modals never being started

This commit is contained in:
Joel Collins 2020-06-05 09:38:36 +01:00
parent f44c4f1f71
commit 6621c99d47

View file

@ -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() {