Levent Arman Özak
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
5 deletions
-
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( |
|
|
|
|