Fixed init modals never being started
This commit is contained in:
parent
f44c4f1f71
commit
6621c99d47
1 changed files with 5 additions and 16 deletions
|
|
@ -223,23 +223,12 @@ export default {
|
||||||
|
|
||||||
created: function() {
|
created: function() {
|
||||||
if (this.$store.getters.ready) {
|
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() {
|
mounted() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue