mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-21 06:18:45 +02:00
Fixed settings option not loading when reloading the page
This commit is contained in:
@@ -32,3 +32,4 @@ test_project/modoboa.db
|
||||
|
||||
# Misc
|
||||
.ash_history
|
||||
modoboa.kdev4
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
<navbar />
|
||||
<navbar v-if="isAuthenticated" />
|
||||
<v-main>
|
||||
<v-container fluid>
|
||||
<transition name="fade">
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user