mirror of https://github.com/rancher/dashboard.git
Merge pull request #2387 from codyrancher/azure-endpoints-fix
Resolving an issue where endpoints werent editable in azure ad auth config
This commit is contained in:
commit
ce6e220b84
|
|
@ -99,7 +99,9 @@ export default {
|
|||
},
|
||||
|
||||
tenantId() {
|
||||
if (this.endpoint !== 'custom') {
|
||||
this.setEndpoints(this.endpoint);
|
||||
}
|
||||
},
|
||||
|
||||
model: {
|
||||
|
|
@ -107,7 +109,9 @@ export default {
|
|||
handler() {
|
||||
this.model.accessMode = this.model.accessMode || 'unrestricted';
|
||||
this.model.rancherUrl = this.model.rancherUrl || this.replyUrl;
|
||||
if (this.endpoint !== 'custom') {
|
||||
this.setEndpoints(this.endpoint);
|
||||
}
|
||||
|
||||
if (this.model.applicationSecret) {
|
||||
this.$set(this, 'applicationSecret', this.model.applicationSecret);
|
||||
|
|
@ -119,7 +123,7 @@ export default {
|
|||
methods: {
|
||||
setEndpoints(endpoint) {
|
||||
Object.keys(ENDPOINT_MAPPING[endpoint]).forEach((key) => {
|
||||
this.model[key] = ENDPOINT_MAPPING[endpoint][key].replace(TENANT_ID_TOKEN, this.model.tenantId);
|
||||
this.$set(this.model, key, ENDPOINT_MAPPING[endpoint][key].replace(TENANT_ID_TOKEN, this.model.tenantId));
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue