Skip to content

Commit

Permalink
test4
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed May 26, 2024
1 parent 350e2f9 commit 2145bc5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions frontend/src/components/viewer/RoleViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,14 @@ export default class RoleViewer extends Vue {
action: this.usersPopup.action,
emails: this.emailsWithRoles
})
}).then(() => EventBus.$emit('needRoleUpdate', () => {
console.log(this);
console.log('debug', this.editedRole.rid);
this.$router.push({name: 'Role', params: {rid: this.editedRole.rid}});
this.saving = false;
})).catch(err => {
}).then(() => {
const rid = this.editedRole.rid;
EventBus.$emit('needRoleUpdate', () => {
// this.editedRole is reset in this callback
this.$router.push({name: 'Role', params: {rid: rid}});
this.saving = false;
});
}).catch(err => {
this.saving = false;
alert(err);
}); else {
Expand Down

0 comments on commit 2145bc5

Please sign in to comment.