Skip to content

Commit

Permalink
agency code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaytkbabu committed Sep 29, 2023
1 parent 612536c commit 0b51cf1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Utils as CommonUtils } from '../../../../../../common/src/app/utils/uti
import { RecordUtils } from '../../utils/record-utils';
import { LoadingScreenService, LoggerService } from 'nrpti-angular-components';
import { Constants } from '../../../utils/constants/misc';
import { AgencyDataService } from '../../../../../../../projects/global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-self-report-add-edit',
Expand All @@ -30,7 +31,7 @@ export class SelfReportAddEditComponent implements OnInit, OnDestroy {
public lngPublishSubtext = 'Not published';

// Pick lists
public agencies = Picklists.agencyPicklist;
public agencies = Picklists.agencyCodePicklist;
public authors = Picklists.authorPicklist;

// Documents
Expand Down Expand Up @@ -358,7 +359,8 @@ export class SelfReportAddEditComponent implements OnInit, OnDestroy {
}

displayName(agency) {
return Utils.displayNameFull(agency);
const agencyDataService = new AgencyDataService(this.factoryService);
return agencyDataService.displayNameFull(agency);
}

cancel() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { RecordDetailComponent } from '../../utils/record-component';
import { RecordUtils } from '../../utils/record-utils';
import { Utils as CommonUtils } from '../../../../../../common/src/app/utils/utils';
import { FactoryService } from '../../../services/factory.service';
import { Utils } from 'nrpti-angular-components';
import { AgencyDataService } from '../../../../../../../projects/global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-self-report-detail',
Expand Down Expand Up @@ -64,7 +64,8 @@ export class SelfReportDetailComponent extends RecordDetailComponent implements
}

displayName(agency) {
return Utils.displayNameFull(agency);
const agencyDataService = new AgencyDataService(this.factoryService);
return agencyDataService.displayNameFull(agency);
}

ngOnDestroy() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Utils as CommonUtils } from '../../../../../../common/src/app/utils/uti
import { RecordUtils } from '../../utils/record-utils';
import { LoadingScreenService, LoggerService } from 'nrpti-angular-components';
import { Constants } from '../../../utils/constants/misc';
import { AgencyDataService } from '../../../../../../../projects/global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-ticket-add-edit',
Expand All @@ -32,7 +33,7 @@ export class TicketAddEditComponent implements OnInit, OnDestroy {
public nrcedPublishSubtext = 'Not published';

// Pick lists
public agencies = Picklists.agencyPicklist;
public agencies = Picklists.agencyCodePicklist;
public authors = Picklists.authorPicklist;
private defaultAgency = '';

Expand Down Expand Up @@ -541,7 +542,8 @@ export class TicketAddEditComponent implements OnInit, OnDestroy {
}

displayName(agency) {
return Utils.displayNameFull(agency);
const agencyDataService = new AgencyDataService(this.factoryService);
return agencyDataService.displayNameFull(agency);
}

cancel() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { RecordDetailComponent } from '../../utils/record-component';
import { RecordUtils } from '../../utils/record-utils';
import { Utils as CommonUtils } from '../../../../../../common/src/app/utils/utils';
import { FactoryService } from '../../../services/factory.service';
import { Utils } from 'nrpti-angular-components';
import { AgencyDataService } from '../../../../../../../projects/global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-ticket-detail',
Expand Down Expand Up @@ -64,7 +64,8 @@ export class TicketDetailComponent extends RecordDetailComponent implements OnIn
}

displayName(agency) {
return Utils.displayNameFull(agency);
const agencyDataService = new AgencyDataService(this.factoryService);
return agencyDataService.displayNameFull(agency);
}

ngOnDestroy() {
Expand Down

0 comments on commit 0b51cf1

Please sign in to comment.