Stakeholder-service: Add propagate option in changeVisibility. Modal: Remove cancel event from ok button

This commit is contained in:
Konstantinos Triantafyllou 2022-07-19 15:18:56 +03:00
parent f4a723d3ac
commit a98af53385
2 changed files with 3 additions and 3 deletions

View File

@ -100,8 +100,8 @@ export class StakeholderService {
})); }));
} }
changeVisibility(url: string, path: string[], visibility: Visibility): Observable<any> { changeVisibility(url: string, path: string[], visibility: Visibility, propagate: boolean = false): Observable<any> {
return this.http.post<Visibility>(url + '/' + path.join('/') + '/change-visibility' + '?visibility=' + visibility, null, CustomOptions.registryOptions()); return this.http.post<Visibility>(url + '/' + path.join('/') + '/change-visibility' + '?visibility=' + visibility + (propagate?'&propagate=true':''), null, CustomOptions.registryOptions());
} }
saveElement(url: string, element: any, path: string[] = []): Observable<any> { saveElement(url: string, element: any, path: string[] = []): Observable<any> {

View File

@ -169,7 +169,7 @@ export class AlertModal {
*/ */
ok() { ok() {
if (!this.stayOpen) { if (!this.stayOpen) {
this.cancel(); UIkit.modal(this.element.nativeElement).hide();
} }
if (!this.choice) { if (!this.choice) {
this.alertOutput.emit(true); this.alertOutput.emit(true);