navigateBack() {
this.dialogState = 1;
+ this.changedSelectedUser = null;
}
removeAdminApp(app: any) {
}
updateAdminAppsRoles() {
+ this.isLoading = true;
const modalRef = this.ngModal.open(InformationModalComponent);
modalRef.componentInstance.title = "Admin Update";
modalRef.componentInstance.message = 'Are you sure you want to make these admin changes?';
this.adminsService.updateAdminAppsRoles({ orgUserId: this.changedSelectedUser.orgUserId, appsRoles: this.adminAppsRoles }).subscribe(_data => {
this.passBackNewAdminPopup.emit(_data);
this.remindToAddUserIfNecessary();
+ this.isLoading = false;
}, (_err: HttpErrorResponse) => {
+ this.isLoading = false;
this.passBackNewAdminPopup.emit(_err);
const modalErrorRef = this.ngModal.open(ConfirmationModalComponent);
modalErrorRef.componentInstance.title = "Error";
}
});
}
+ this.isLoading = false;
}, (reason) => {
return;
});