import {Component, OnInit, AfterViewInit, ViewChild, ChangeDetectorRef, OnDestroy} from '@angular/core';
import {filter, takeUntil} from 'rxjs/operators';
import {Subject, Observable, of} from 'rxjs';
-import {NgbTabset, NgbTabChangeEvent} from '@ng-bootstrap/ng-bootstrap';
+import {NgbTabChangeEvent} from '@ng-bootstrap/ng-bootstrap';
import {Router, ActivatedRoute, ParamMap, RouterEvent, NavigationEnd} from '@angular/router';
-import {StaffCommonModule} from '@eg/staff/common.module';
-import {IdlService, IdlObject} from '@eg/core/idl.service';
-import {PcrudService} from '@eg/core/pcrud.service';
+import {IdlService} from '@eg/core/idl.service';
import {AcqProviderSummaryPaneComponent} from './summary-pane.component';
import {ProviderDetailsComponent} from './provider-details.component';
import {ProviderHoldingsComponent} from './provider-holdings.component';
private router: Router,
private route: ActivatedRoute,
private auth: AuthService,
- private pcrud: PcrudService,
private idl: IdlService,
- private providerRecord: ProviderRecordService,
+ public providerRecord: ProviderRecordService,
private toast: ToastService,
private store: StoreService,
private changeDetector: ChangeDetectorRef
import {Injectable} from '@angular/core';
-import {Observable, from} from 'rxjs';
-import {empty, throwError, Subject} from 'rxjs';
+import {Observable} from 'rxjs';
+import {Subject} from 'rxjs';
import {map, defaultIfEmpty} from 'rxjs/operators';
import {PcrudService} from '@eg/core/pcrud.service';
import {IdlService, IdlObject} from '@eg/core/idl.service';
-import {NetService} from '@eg/core/net.service';
import {PermService} from '@eg/core/perm.service';
export class ProviderSummary {
@Injectable()
export class ProviderRecordService {
- private currentProvider: ProviderRecord;
+ public currentProvider: ProviderRecord;
private currentProviderId: number = null;
private providerUpdatedSource = new Subject<number>();
constructor(
private idl: IdlService,
- private net: NetService,
private pcrud: PcrudService,
private perm: PermService
) {