mirror of https://github.com/apache/cloudstack.git
ui: Display 'Add LDAP Account' button when LDAP configuration is added (#4971)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
parent
98e2ed3c4f
commit
39cb2bf0af
|
|
@ -325,7 +325,16 @@ const user = {
|
|||
})
|
||||
})
|
||||
},
|
||||
|
||||
UpdateConfiguration ({ commit }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
api('listLdapConfigurations').then(response => {
|
||||
const ldapEnable = (response.ldapconfigurationresponse.count > 0)
|
||||
commit('SET_LDAP', ldapEnable)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
},
|
||||
SetDomainStore ({ commit }, domainStore) {
|
||||
commit('SET_DOMAIN_STORE', domainStore)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -963,6 +963,9 @@ export default {
|
|||
break
|
||||
}
|
||||
}
|
||||
if (['addLdapConfiguration', 'deleteLdapConfiguration'].includes(action.api)) {
|
||||
this.$store.dispatch('UpdateConfiguration')
|
||||
}
|
||||
return false
|
||||
},
|
||||
execSubmit (e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue