Fixed settings option not loading when reloading the page

This commit is contained in:
Spitap
2023-09-11 17:38:34 +02:00
parent 6eb31677e8
commit c8331208cc
3 changed files with 12 additions and 13 deletions
+1
View File
@@ -32,3 +32,4 @@ test_project/modoboa.db
# Misc
.ash_history
modoboa.kdev4
+1 -1
View File
@@ -7,7 +7,7 @@
</template>
<template v-else>
<navbar />
<navbar v-if="isAuthenticated" />
<v-main>
<v-container fluid>
<transition name="fade">
+10 -12
View File
@@ -284,20 +284,18 @@ export default {
}
},
created () {
if (this.isAuthenticated) {
parameters.getApplications().then(response => {
response.data.forEach(item => {
this.mainMenuItems[6].children.push({
text: item.label,
to: { name: 'ParametersEdit', params: { app: item.name } }
})
parameters.getApplications().then(response => {
response.data.forEach(item => {
this.mainMenuItems[6].children.push({
text: item.label,
to: { name: 'ParametersEdit', params: { app: item.name } }
})
})
parameters.getApplication('imap_migration').then(response => {
this.imapMigration = response.data.params.enabled_imapmigration
})
bus.$on('imapSettingsChanged', (status) => { this.imapMigration = status })
}
})
parameters.getApplication('imap_migration').then(response => {
this.imapMigration = response.data.params.enabled_imapmigration
})
bus.$on('imapSettingsChanged', (status) => { this.imapMigration = status })
},
methods: {
displayMenuItem (item) {