ui: fix handle action response (#5285)

Fixes #5284

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2021-08-06 19:50:20 +05:30 committed by GitHub
parent f9fbd86efe
commit f421a961db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1185,15 +1185,15 @@ export default {
break break
} }
} }
if (['addLdapConfiguration', 'deleteLdapConfiguration'].includes(action.api)) {
this.$store.dispatch('UpdateConfiguration')
}
if (jobId) {
eventBus.$emit('update-resource-state', this.selectedItems, resource, 'InProgress', jobId)
resolve(this.pollActionCompletion(jobId, action, resourceName, resource, showLoading))
}
resolve(false)
} }
if (['addLdapConfiguration', 'deleteLdapConfiguration'].includes(action.api)) {
this.$store.dispatch('UpdateConfiguration')
}
if (jobId) {
eventBus.$emit('update-resource-state', this.selectedItems, resource, 'InProgress', jobId)
resolve(this.pollActionCompletion(jobId, action, resourceName, resource, showLoading))
}
resolve(false)
}) })
}, },
execSubmit (e) { execSubmit (e) {