From dea441e0acbcc2c8dc440082fa8d72579680a5b5 Mon Sep 17 00:00:00 2001 From: Karthik Jeeyar Date: Fri, 14 Dec 2018 12:42:58 +0530 Subject: [PATCH] fix(remove_duplicate_instances): remove multiple instances of auth service (#2819) --- .../work-item-detail/work-item-detail.component.ts | 3 ++- .../work-item-detail/work-item-detail.module.ts | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/components_ngrx/work-item-detail/work-item-detail.component.ts b/src/app/components_ngrx/work-item-detail/work-item-detail.component.ts index a2e3fbb30..a6f5d7c04 100644 --- a/src/app/components_ngrx/work-item-detail/work-item-detail.component.ts +++ b/src/app/components_ngrx/work-item-detail/work-item-detail.component.ts @@ -31,7 +31,8 @@ import { AppState } from './../../states/app.state'; @Component({ selector: 'work-item-detail', templateUrl: './work-item-detail.component.html', - styleUrls: ['./work-item-detail.component.less'] + styleUrls: ['./work-item-detail.component.less'], + providers: [AuthenticationService] }) export class WorkItemDetailComponent implements OnInit, OnDestroy, AfterViewChecked { @ViewChild('detailHeader') detailHeader: ElementRef; diff --git a/src/app/components_ngrx/work-item-detail/work-item-detail.module.ts b/src/app/components_ngrx/work-item-detail/work-item-detail.module.ts index 59f41cb7f..c702129eb 100644 --- a/src/app/components_ngrx/work-item-detail/work-item-detail.module.ts +++ b/src/app/components_ngrx/work-item-detail/work-item-detail.module.ts @@ -5,7 +5,6 @@ import { RouterModule } from '@angular/router'; import { MyDatePickerModule } from 'mydatepicker'; import { TruncateModule } from 'ng2-truncate'; import { TooltipConfig, TooltipModule } from 'ngx-bootstrap/tooltip'; -import { AuthenticationService } from 'ngx-login-client'; import { MarkdownModule, WidgetsModule } from 'ngx-widgets'; import { PlannerModalModule } from '../../widgets/modal/modal.module'; import { DynamicFieldComponent } from '../dynamic-field/dynamic-field.component'; @@ -121,7 +120,6 @@ import { UserAvatarModule } from './../../widgets/user-avatar/user-avatar.module UrlService, SpaceQuery, BsDropdownConfig, - AuthenticationService, TooltipConfig, IterationQuery, WorkItemQuery,