X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Fconfirm%2Fconfirm.service.ts;h=6e042c16bf5f99485b0b58efdcc749e65a52b5f9;hb=60c2bc80b82c71bd63bdb1fcf64d4d49491ce5c8;hp=8419f622b257e0afd395a24f780f554e3449e088;hpb=db400f447a9f7aae1c56fa25396e93069744483f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/confirm/confirm.service.ts b/client/src/app/core/confirm/confirm.service.ts index 8419f622b..6e042c16b 100644 --- a/client/src/app/core/confirm/confirm.service.ts +++ b/client/src/app/core/confirm/confirm.service.ts @@ -18,12 +18,16 @@ export class ConfirmService { confirm (message: string, title = '', confirmButtonText?: string) { this.showConfirm.next({ title, message, confirmButtonText }) - return this.confirmResponse.asObservable().pipe(first()).toPromise() + return this.confirmResponse.asObservable() + .pipe(first()) + .toPromise() } confirmWithInput (message: string, inputLabel: string, expectedInputValue: string, title = '', confirmButtonText?: string) { this.showConfirm.next({ title, message, inputLabel, expectedInputValue, confirmButtonText }) - return this.confirmResponse.asObservable().pipe(first()).toPromise() + return this.confirmResponse.asObservable() + .pipe(first()) + .toPromise() } }