Stakeholder-service: Add propagate option in changeVisibility. Modal: Remove cancel event from ok button
This commit is contained in:
parent
f4a723d3ac
commit
a98af53385
|
@ -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> {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue