Browse Source

Update confirmation.service.ts

pull/3821/head
Levent Arman Özak 6 years ago
committed by GitHub
parent
commit
bdb0d6b6c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      npm/ng-packs/packages/theme-shared/src/lib/services/confirmation.service.ts

10
npm/ng-packs/packages/theme-shared/src/lib/services/confirmation.service.ts

@ -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