diff --git a/admin/src/components/ChangeUserRoleFormular.vue b/admin/src/components/ChangeUserRoleFormular.vue index 42695256e..8690ba26c 100644 --- a/admin/src/components/ChangeUserRoleFormular.vue +++ b/admin/src/components/ChangeUserRoleFormular.vue @@ -27,7 +27,7 @@ :title="modalTitle" :cancel-title="$t('overlay.cancel')" :ok-title="modalOkTitle" - @ok="modalEvent" + @ok="setUserRole(roleSelected, currentRole)" >

{{ modalQuestion }}

@@ -60,17 +60,9 @@ export default { modalTitle: '', modalQuestion: '', modalOkTitle: '', - modalEvent: null, username: '', } }, - watch: { - // roleSelected(newRole, oldRole) { - // if (newRole !== oldRole) { - // // this.setUserRole(newRole, oldRole) - // } - // }, - }, methods: { showModal() { this.username = `${this.item.firstName} ${this.item.lastName}` @@ -80,7 +72,6 @@ export default { newRole: this.roleSelected, // TODO get the text:Administrator instead of admin }) this.modalOkTitle = this.$t('overlay.changeUserRole.yes') - this.modalEvent = this.setUserRole(this.roleSelected, this.currentRole) }, setUserRole(newRole, oldRole) { this.$apollo