diff --git a/monitor/services/stakeholder.service.ts b/monitor/services/stakeholder.service.ts index 1e1dd53e..27cfdfe5 100644 --- a/monitor/services/stakeholder.service.ts +++ b/monitor/services/stakeholder.service.ts @@ -100,8 +100,8 @@ export class StakeholderService { })); } - changeVisibility(url: string, path: string[], visibility: Visibility): Observable { - return this.http.post(url + '/' + path.join('/') + '/change-visibility' + '?visibility=' + visibility, null, CustomOptions.registryOptions()); + changeVisibility(url: string, path: string[], visibility: Visibility, propagate: boolean = false): Observable { + return this.http.post(url + '/' + path.join('/') + '/change-visibility' + '?visibility=' + visibility + (propagate?'&propagate=true':''), null, CustomOptions.registryOptions()); } saveElement(url: string, element: any, path: string[] = []): Observable { diff --git a/utils/modal/alert.ts b/utils/modal/alert.ts index 2f9df9bd..02b154b7 100644 --- a/utils/modal/alert.ts +++ b/utils/modal/alert.ts @@ -169,7 +169,7 @@ export class AlertModal { */ ok() { if (!this.stayOpen) { - this.cancel(); + UIkit.modal(this.element.nativeElement).hide(); } if (!this.choice) { this.alertOutput.emit(true);