mirror of https://github.com/rancher/dashboard.git
Merge pull request #3611 from richard-cox/master-fix-undefined-version
[master] Ensure we don't generically `management/findAll` settings type before logging in
This commit is contained in:
commit
890dee421a
|
|
@ -15,7 +15,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async fetch() {
|
async fetch() {
|
||||||
this.managementSettings = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.SETTING });
|
this.managementSettings = await this.$store.getters['management/all'](MANAGEMENT.SETTING);
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return { managementSettings: [] };
|
return { managementSettings: [] };
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { createCssVars } from '@/utils/color';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
async fetch() {
|
async fetch() {
|
||||||
this.globalSettings = await this.$store.dispatch('management/findAll', { type: MANAGEMENT.SETTING, opt: { url: `/v1/${ MANAGEMENT.SETTING }` } });
|
this.globalSettings = await this.$store.getters['management/all'](MANAGEMENT.SETTING);
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue