mirror of https://github.com/apache/cloudstack.git
ui: Add support to filter Roles permissions (#5488)
This commit is contained in:
parent
67be3da36e
commit
5d63379ea4
|
|
@ -171,9 +171,15 @@ export default {
|
|||
}).finally(() => {
|
||||
this.loadingTable = false
|
||||
this.updateTable = false
|
||||
this.updateApis()
|
||||
if (callback) callback()
|
||||
})
|
||||
},
|
||||
updateApis () {
|
||||
this.apis = Object.keys(this.$store.getters.apis).sort((a, b) => a.localeCompare(b))
|
||||
var apisSupported = this.rules?.map(rule => rule.rule) || []
|
||||
this.apis = this.apis.filter(api => !apisSupported.includes(api))
|
||||
},
|
||||
changeOrder () {
|
||||
api('updateRolePermission', {}, 'POST', {
|
||||
roleid: this.resource.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue