Fix application of branding, color and theme from settings (#6706)

- The watchers for settings apply them
- This was not happening as they never changed from the initial value
- Caused by 771f168a5b
- Revert to the initial way. This may break epinio but that can be fixed later on
This commit is contained in:
Richard Cox 2022-08-29 18:12:47 +01:00 committed by GitHub
parent e336a25c3b
commit 733caceb36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -12,16 +12,15 @@ export default {
this.apps = await this.$store.dispatch('management/findAll', { type: CATALOG.APP });
}
} catch (e) {}
this.globalSettings = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.SETTING });
},
data() {
return { apps: [] };
return { apps: [], globalSettings: [] };
},
computed: {
globalSettings() {
return this.$store.getters['management/all'](MANAGEMENT.SETTING);
},
brand() {
const setting = findBy(this.globalSettings, 'id', SETTING.BRAND);