Ensure we fetch `server-url` in auth-config correctly

- url part of `management/find` was incorrect
- url was never used as we normally have the resource, however there's some kind of log in bug #3160 where settings are missing, including server-url
- so server-url was never fetched... dodgy url threw exception... model was never fetched
- we don't have a pattern for $fetchState.error anywhere, which we could use here when fetch failed instead of continueing
- addresses #3137
This commit is contained in:
Richard Cox 2021-06-04 10:59:34 +01:00
parent a187d2e736
commit b0c96cd9e5
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default {
const serverUrl = await this.$store.dispatch('management/find', {
type: MANAGEMENT.SETTING,
id: 'server-url',
opt: { url: `/v1/{ MANAGEMENT.SETTING }/server-url` }
opt: { url: `/v1/${ MANAGEMENT.SETTING }/server-url` }
});
this.principals = await this.$store.dispatch('rancher/findAll', {