mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ADF-4205] Fix console error when adding user or group in Permissions Page (#4440)
This commit is contained in:
parent
e49ba58d65
commit
8edf92f325
@ -63,17 +63,14 @@ export class DemoPermissionComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openAddPermissionDialog(event: Event) {
|
openAddPermissionDialog(event: Event) {
|
||||||
this.nodePermissionDialogService.updateNodePermissionByDialog(this.nodeId).subscribe(() => {
|
this.nodePermissionDialogService.updateNodePermissionByDialog(this.nodeId).subscribe(
|
||||||
this.displayPermissionComponent.reload();
|
() => this.displayPermissionComponent.reload(),
|
||||||
},
|
(error) => this.showErrorMessage(error));
|
||||||
(error) => {
|
|
||||||
this.showErrorMessage(error);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
showErrorMessage(error) {
|
showErrorMessage(error) {
|
||||||
this.notificationService.openSnackMessage(
|
this.notificationService.openSnackMessage(
|
||||||
error,
|
error.message,
|
||||||
4000
|
4000
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user