Update confirmation.service.ts

pull/3821/head
Levent Arman Özak 6 years ago committed by GitHub
parent 91f1b6982b
commit bdb0d6b6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,6 +12,11 @@ export class ConfirmationService {
private containerComponentRef: ComponentRef<ConfirmationComponent>;
clear = (status: Confirmation.Status = Confirmation.Status.dismiss) => {
this.confirmation$.next();
this.status$.next(status);
};
constructor(private contentProjectionService: ContentProjectionService) {}
private setContainer() {
@ -76,11 +81,6 @@ export class ConfirmationService {
return this.status$;
}
clear = (status: Confirmation.Status = Confirmation.Status.dismiss) => {
this.confirmation$.next();
this.status$.next(status);
};
private listenToEscape() {
fromEvent(document, 'keyup')
.pipe(

Loading…
Cancel
Save