Browse Source

Lint errors was fixed

pull/11576/head
Mahmut Gundogdu 5 years ago
parent
commit
6432e54f95
  1. 1
      npm/ng-packs/packages/theme-shared/src/lib/models/confirmation.ts
  2. 6
      npm/ng-packs/packages/theme-shared/src/lib/services/confirmation.service.ts

1
npm/ng-packs/packages/theme-shared/src/lib/models/confirmation.ts

@ -1,5 +1,4 @@
import { LocalizationParam } from '@abp/ng.core'; import { LocalizationParam } from '@abp/ng.core';
import {TemplateRef} from "@angular/core";
export namespace Confirmation { export namespace Confirmation {
export interface Options { export interface Options {

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

@ -2,8 +2,8 @@ import { ContentProjectionService, LocalizationParam, PROJECTION_STRATEGY } from
import { ComponentRef, Injectable } from '@angular/core'; import { ComponentRef, Injectable } from '@angular/core';
import { fromEvent, Observable, ReplaySubject, Subject } from 'rxjs'; import { fromEvent, Observable, ReplaySubject, Subject } from 'rxjs';
import { debounceTime, filter, takeUntil } from 'rxjs/operators'; import { debounceTime, filter, takeUntil } from 'rxjs/operators';
import { ConfirmationComponent } from '../components/confirmation/confirmation.component'; import { ConfirmationComponent } from '../components';
import { Confirmation } from '../models/confirmation'; import { Confirmation } from '../models';
@Injectable({ providedIn: 'root' }) @Injectable({ providedIn: 'root' })
export class ConfirmationService { export class ConfirmationService {
@ -93,7 +93,7 @@ export class ConfirmationService {
debounceTime(150), debounceTime(150),
filter((key: KeyboardEvent) => key && key.key === 'Escape'), filter((key: KeyboardEvent) => key && key.key === 'Escape'),
) )
.subscribe(_ => { .subscribe(() => {
this.clear(); this.clear();
}); });
} }

Loading…
Cancel
Save