Reset role permission/user state when closing the role dialog
closeViewRoleDialog already clears rolePermissionsForView and roleUsersForView; closeRoleDialog (used by both Edit and Create flows) did not. With editRole now populating those arrays, leftover state would otherwise survive a close → open-Create round trip. The Create template branch doesn't read the arrays today (v-if guarded on editingRole), so this is defensive — keeps the two close handlers symmetrical and avoids future regressions if the Create branch ever starts referencing them.
This commit is contained in:
parent
55f8249f2c
commit
1edd126a43
1 changed files with 2 additions and 0 deletions
|
|
@ -846,6 +846,8 @@ window.app = Vue.createApp({
|
||||||
this.showCreateRoleDialog = false
|
this.showCreateRoleDialog = false
|
||||||
this.editingRole = false
|
this.editingRole = false
|
||||||
this.selectedRole = null
|
this.selectedRole = null
|
||||||
|
this.roleUsersForView = []
|
||||||
|
this.rolePermissionsForView = []
|
||||||
this.resetRoleForm()
|
this.resetRoleForm()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue