mirror of https://github.com/rancher/dashboard.git
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:
parent
e336a25c3b
commit
733caceb36
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue