Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ui/src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ const user = {
api('listLdapConfigurations').then(response => {
const ldapEnable = (response.ldapconfigurationresponse.count > 0)
commit('SET_LDAP', ldapEnable)
}).catch(error => {
reject(error)
}).catch(ignored => {
Comment thread
sudo87 marked this conversation as resolved.
})

api('cloudianIsEnabled').then(response => {
Expand Down Expand Up @@ -551,7 +550,7 @@ const user = {
}
})
},
UpdateConfiguration ({ commit }) {
UpdateLdapConfigurationFlag ({ commit }) {
return new Promise((resolve, reject) => {
api('listLdapConfigurations').then(response => {
const ldapEnable = (response.ldapconfigurationresponse.count > 0)
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/AutogenView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ export default {
}
}
if (['addLdapConfiguration', 'deleteLdapConfiguration'].includes(action.api)) {
this.$store.dispatch('UpdateConfiguration')
this.$store.dispatch('UpdateLdapConfigurationFlag')
}
if (jobId) {
eventBus.emit('update-resource-state', { selectedItems: this.selectedItems, resource, state: 'InProgress', jobid: jobId })
Expand Down
Loading