Browse Source
Merge pull request #3691 from abpframework/refactor/confirmation-service
Made listenToEscape method of ConfirmationService private
pull/3702/head
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
3 additions and
3 deletions
-
npm/ng-packs/packages/theme-shared/src/lib/services/confirmation.service.ts
|
|
|
@ -75,12 +75,12 @@ export class ConfirmationService { |
|
|
|
return this.status$; |
|
|
|
} |
|
|
|
|
|
|
|
clear(status?: Confirmation.Status) { |
|
|
|
clear(status: Confirmation.Status = Confirmation.Status.dismiss) { |
|
|
|
this.confirmation$.next(); |
|
|
|
this.status$.next(status || Confirmation.Status.dismiss); |
|
|
|
this.status$.next(status); |
|
|
|
} |
|
|
|
|
|
|
|
listenToEscape() { |
|
|
|
private listenToEscape() { |
|
|
|
fromEvent(document, 'keyup') |
|
|
|
.pipe( |
|
|
|
takeUntil(this.status$), |
|
|
|
|