feat(console): refresh roles, user-grants and project-members based on previous navigation (#728)

* feat: refresh roles, user-grants, project-members

* refresh keys

* user grants on granted projects

* refresh on member changes

* membership refresh

* lint
This commit is contained in:
Max Peintner
2020-09-11 14:24:41 +02:00
committed by GitHub
parent 15c977dab4
commit 4926509de0
24 changed files with 134 additions and 13 deletions

View File

@@ -103,7 +103,11 @@ export class ProjectMembersComponent {
this.toast.showError(error);
});
}
}));
})).then(() => {
setTimeout(() => {
this.changePage();
}, 1000);
});
}
public isAllSelected(): boolean {
@@ -141,6 +145,9 @@ export class ProjectMembersComponent {
user.id, roles);
}
})).then(() => {
setTimeout(() => {
this.changePage();
}, 1000);
this.toast.showInfo('PROJECT.TOAST.MEMBERSADDED', true);
}).catch(error => {
this.toast.showError(error);