diff --git a/src/admin/components/lists/capabilities-list.vue b/src/admin/components/lists/capabilities-list.vue index c43a2e751..f6c0e4f70 100644 --- a/src/admin/components/lists/capabilities-list.vue +++ b/src/admin/components/lists/capabilities-list.vue @@ -116,25 +116,26 @@ v-if="index == editingCapability" class="tainacan-form" colspan="4"> - - - -

{{ $i18n.get('info_no_role_associated_capability') }}

-
+ +

{{ $i18n.get('info_no_role_associated_capability') }}

@@ -179,11 +180,11 @@ else this.editingCapability = capabilityKey; }, - updateRole(role, capabilityKey) { - if (role) - this.disassociateCapabilityWithRole({ capability: capabilityKey, role: role }) + updateRole(role, capabilityKey, value) { + if (value) + this.associateCapabilityWithRole({ capabilityKey: capabilityKey, role: role }) else - this.disassociateCapabilityWithRole({ capability: capabilityKey, role: role }) + this.disassociateCapabilityWithRole({ capabilityKey: capabilityKey, role: role }) } } }