Skip to content

Commit

Permalink
Merge pull request #14 from appventure-nush/beta
Browse files Browse the repository at this point in the history
allow no initial users
  • Loading branch information
squi-ddy authored May 26, 2024
2 parents 9cf2385 + 69d83a3 commit 3c96881
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/components/viewer/RoleViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ export default class RoleViewer extends Vue {
desc: this.editedRole.desc,
defaultPerm: this.editedRole.defaultPerm,
permissions: this.editedRole.permissions
}).then(() => post(`/api/roles/${this.editedRole.rid}/users`, {
action: this.usersPopup.action,
emails: this.emailsWithRoles
})).then(() => EventBus.$emit('needRoleUpdate', () => {
}).then(() => {
if (this.emailsWithRoles) post(`/api/roles/${this.editedRole.rid}/users`, {
action: this.usersPopup.action,
emails: this.emailsWithRoles
})
}).then(() => EventBus.$emit('needRoleUpdate', () => {
this.$router.push({name: 'Role', params: {rid: this.editedRole.rid}});
this.saving = false;
})).catch(err => {
Expand Down

0 comments on commit 3c96881

Please sign in to comment.