Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NRPTI-1045][FEATURE] - issuing agency update #1120

Merged
merged 80 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
6126963
add menu item and page code - wip
davidclaveau Sep 11, 2023
32f14a4
Updated the front end to display list of agencies from drop down and …
Christopher-walsh22 Sep 11, 2023
346cf1b
create model and migration for agencies
davidclaveau Sep 11, 2023
f424e39
fix to model and migration - wip
davidclaveau Sep 12, 2023
1d99fe5
update agency code migration, add update issuingAgency
davidclaveau Sep 12, 2023
7e356ce
update model to only add to nrpti collection
davidclaveau Sep 12, 2023
8cf29f9
sample api added - list-agencies WIP
sanjaytkbabu Sep 12, 2023
5d55424
added api to list agencies, schema type
sanjaytkbabu Sep 13, 2023
23044bb
added get api
sanjaytkbabu Sep 13, 2023
8fe5785
put api added for updating agencies
sanjaytkbabu Sep 13, 2023
8711ada
New component to make request to new endpoint for issuing agencies
Christopher-walsh22 Sep 14, 2023
de0f22c
Options added
sanjaytkbabu Sep 14, 2023
1b8b7b0
Fixed component to properly display the information returned from get…
Christopher-walsh22 Sep 14, 2023
30be531
Update the agencyList array with selection from drop down menu. Creat…
Christopher-walsh22 Sep 14, 2023
8e41013
First steps of patch logic to the update agency service
Christopher-walsh22 Sep 14, 2023
58a0f7d
Front end component updates entries in for agency issuers through new…
Christopher-walsh22 Sep 14, 2023
70c6122
security token enabled, alerts removed, compile issue fixed
sanjaytkbabu Sep 15, 2023
c118d7f
toast added
sanjaytkbabu Sep 15, 2023
5688d72
button style updated
sanjaytkbabu Sep 15, 2023
edca104
Style added to dropdown
sanjaytkbabu Sep 15, 2023
8c58766
current selected agency removed
sanjaytkbabu Sep 15, 2023
d6982c3
wip - add agency service to app_init, change displayName
davidclaveau Sep 15, 2023
bf4856d
error message added
sanjaytkbabu Sep 15, 2023
d8ec256
removed logging and fixed indentation
sanjaytkbabu Sep 18, 2023
b5a1fc3
replaced hardcoded agency names with api calls
sanjaytkbabu Sep 18, 2023
99674df
api call moved to service layer
sanjaytkbabu Sep 18, 2023
6c93abd
issuing agency in add order replaced with api calls
sanjaytkbabu Sep 19, 2023
95608e6
add climate action secretariat to migrations
davidclaveau Sep 21, 2023
9376f16
wip - agencies are updated in factory, prelim update to components
davidclaveau Sep 22, 2023
d4d0ccd
wip - update picklist to allow dynamic update (admin penalty only)
davidclaveau Sep 25, 2023
c63f17b
wip - make buildForm for admin penalty async
davidclaveau Sep 25, 2023
318a469
wip - update to factory service, fix buildForm in admin penalty
davidclaveau Sep 25, 2023
f564dfa
refresh agencies after they are updated
davidclaveau Sep 25, 2023
370fcee
remove async ngOnInit, no longer needed
davidclaveau Sep 25, 2023
9ab27bb
update to more relevant terminology
davidclaveau Sep 25, 2023
c6528bf
update to agencies in components and modules
davidclaveau Sep 25, 2023
d231282
agency name translated to agency code on admin penalty save
sanjaytkbabu Sep 25, 2023
a5e456e
update admin penalty to show agency; linting updates
davidclaveau Sep 25, 2023
7f08537
linting updates
davidclaveau Sep 25, 2023
afea3a5
linting updates
davidclaveau Sep 25, 2023
0aeedfb
API unit tests fix
sanjaytkbabu Sep 29, 2023
af97202
linting fix for agency-data-service
davidclaveau Sep 29, 2023
cf47de5
Merge branch 'master' into feature/1045-issuing-agency-update
davidclaveau Sep 29, 2023
8874992
Agencies icon changed
sanjaytkbabu Sep 29, 2023
612536c
agency code updated
sanjaytkbabu Sep 29, 2023
0b51cf1
agency code updated
sanjaytkbabu Sep 29, 2023
0573f42
issuing agency replaced with api call
sanjaytkbabu Sep 29, 2023
e5bfc3a
update migration to change 'author' name to code; separate agency_env…
davidclaveau Sep 29, 2023
2f01e1d
update migration for ENV_EPD and update authors
davidclaveau Oct 2, 2023
d05a8c9
linting: white space added
sanjaytkbabu Oct 3, 2023
661d351
linting
sanjaytkbabu Oct 3, 2023
5d0f1e2
Update api/src/models/master/applicationAgency.js
sanjaytkbabu Oct 3, 2023
29ac607
Update api/src/swagger/swagger.yaml
sanjaytkbabu Oct 3, 2023
9f5ff8d
Update api/migrations/20230911220312-addApplicationAgenciesModel.js
sanjaytkbabu Oct 3, 2023
2bed555
comments added, unused function removed
sanjaytkbabu Oct 3, 2023
35e17d8
revert migration update
davidclaveau Oct 4, 2023
8eaa957
revert migration; update NRPTI agency filter
davidclaveau Oct 4, 2023
de6633e
mine record page updated to use agency code
sanjaytkbabu Oct 4, 2023
ce7426c
mines collection updated to use agency code
sanjaytkbabu Oct 4, 2023
0aae880
update importers to use agencyCodes
davidclaveau Oct 4, 2023
90c51dd
update importer integrations to use agencyCodes
davidclaveau Oct 4, 2023
89c2526
fix some failing tests
davidclaveau Oct 4, 2023
0607df0
Merge branch 'master' into feature/1045-issuing-agency-update
davidclaveau Oct 4, 2023
9c8133d
refactoring
sanjaytkbabu Oct 5, 2023
10dc4e7
add documentation to new files and migrations; minor code cleanup
davidclaveau Oct 5, 2023
435da7c
migration added for bcmi
sanjaytkbabu Oct 5, 2023
329ac93
fix missing agency codes in integrations; add epic test
davidclaveau Oct 6, 2023
822c8f0
wip - nrced agency swap
sanjaytkbabu Oct 12, 2023
3f60bc0
fix to call agency data service on init in nrced
davidclaveau Oct 13, 2023
b4f0a0d
NRCED records updated with agency api call
sanjaytkbabu Oct 13, 2023
f712d7e
fix agency code transformation for nris-epd, fix tests
davidclaveau Oct 13, 2023
877568f
fix issuing agency for nris-epd integration
davidclaveau Oct 13, 2023
6f7ab07
update to show ministry name on mines table
davidclaveau Oct 13, 2023
7c88187
sonarcloud fixes
davidclaveau Oct 13, 2023
a3f4470
fix to show agency name in mines detail components
davidclaveau Oct 13, 2023
b1e00d4
show correct agency names in mines enforcement components
davidclaveau Oct 14, 2023
b855658
removed unneeded conditional
LocalNewsTV Oct 16, 2023
1abe1af
Merge branch 'master' into feature/1045-issuing-agency-update
sanjaytkbabu Oct 16, 2023
e0ff32a
page now refreshes after agency update to prevent multiple saves at once
sanjaytkbabu Oct 16, 2023
3d16f63
bug fixes
sanjaytkbabu Oct 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export class AgenciesComponent implements OnInit {
this.factoryService.applicationAgencyService.refreshAgencies().subscribe();
}
updateSelectedAgency(): void {
const index = this.agencyList.indexOf(this.selectedAgency);
try {
if (this.newAgency.trim() !== '') {
if (this.newAgency.trim() !== '' && index !== -1) {
// Find the agency code that matches the selected agency name
const matchingCode = Object.keys(this.agencies).find(key => this.agencies[key] === this.selectedAgency);
if (matchingCode) {
// Update the agencyList with the new value at the same index
const index = this.agencyList.indexOf(this.selectedAgency);
if (index !== -1) {
this.agencyList[index] = this.newAgency;
}
Expand All @@ -65,9 +65,12 @@ export class AgenciesComponent implements OnInit {
this.updatedData.agencies = [];
}
this.toastService.addMessage('Agency Successfully Updated', 'Success Updated', Constants.ToastTypes.SUCCESS);
setTimeout(() => {
location.reload();
}, 1500);
} else {
this.toastService.addMessage(
'Updated Agency Name Cannot be Empty',
'Updating/Updated Agency Name Cannot be Empty',
'Save unsuccessful',
Constants.ToastTypes.ERROR
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h2 class="border-0 mb-0">{{ (isEditing && 'Edit') || (!isEditing && 'Add') }} C
<label for="collectionAgency">Agency</label>
<select name="collectionAgency" id="collectionAgency" formControlName="collectionAgency" class="form-control">
<option *ngFor="let collectionAgency of collectionAgencies" [ngValue]="collectionAgency">
{{ this.convertAcronyms(collectionAgency) }}
{{ this.displayName(collectionAgency) }}
</option>
</select>
</div>
Expand Down Expand Up @@ -243,4 +243,4 @@ <h3 class="border-0 mb-0">Associated Records</h3>
</div>
</div>
</div>
</main>
</main>
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ConfirmComponent } from '../../confirm/confirm.component';
import { FactoryService } from '../../services/factory.service';
import { RecordUtils } from '../../records/utils/record-utils';
import { Constants } from '../../utils/constants/misc';
import { AgencyDataService } from '../../../../../../projects/global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-mines-collections-add-edit',
Expand All @@ -39,7 +40,7 @@ export class MinesCollectionsAddEditComponent implements OnInit, OnDestroy {

// Pick lists
public collectionTypes = Picklists.collectionTypePicklist;
public collectionAgencies = Picklists.collectionAgencyPicklist;
public collectionAgencies = Picklists.collectionAgencyCodePicklist;

// collection add edit state
public collectionState = null;
Expand Down Expand Up @@ -541,6 +542,11 @@ export class MinesCollectionsAddEditComponent implements OnInit, OnDestroy {
return Utils.convertAcronyms(acronym);
}

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

ngOnDestroy(): void {
// When the component is destroying, if collectionAddEdit state exists, but the user hadn't clicked the
// 'addRecordsToCollection' button, then remove the collection state from the store.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h4>Basic Information</h4>
name="issuingAgency"
id="issuingAgency"
type="text"
value="{{ this.convertAcronyms(defaultAgency) }}"
value="{{ this.displayName(defaultAgency) }}"
class="form-control" />
</div>
<div class="label-pair">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { LoadingScreenService, LoggerService } from 'nrpti-angular-components';
import { Utils, StoreService } from 'nrpti-angular-components';
import { ChangeDetectorRef } from '@angular/core';
import { takeUntil } from 'rxjs/operators';
import { AgencyDataService } from '../../../../../../global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-mines-administrative-penalty-add-edit',
Expand All @@ -16,7 +17,7 @@ import { takeUntil } from 'rxjs/operators';
export class MinesAdministrativePenaltyAddEditComponent extends AdministrativePenaltyAddEditComponent
implements OnInit {
public componentTitle = 'BCMI Administrative Penalty Record';
public defaultAgency = 'Ministry of Energy Mines and Low Carbon Innovation';
public defaultAgency = 'AGENCY_EMLI';
public defaultAuthor = 'BC Government';
public currentRecord = null;

Expand Down Expand Up @@ -103,7 +104,8 @@ export class MinesAdministrativePenaltyAddEditComponent extends AdministrativePe
}

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 @@ -5,7 +5,8 @@ import { takeUntil } from 'rxjs/operators';
import { AdministrativePenaltyDetailComponent } from '../../../records/administrative-penalties/administrative-penalty-detail/administrative-penalty-detail.component';
import { RecordUtils } from '../../../records/utils/record-utils';
import { FactoryService } from '../../../services/factory.service';
import { StoreService, Utils } from 'nrpti-angular-components';
import { StoreService } from 'nrpti-angular-components';
import { AgencyDataService } from '../../../../../../global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-mines-administrative-penalty-detail',
Expand Down Expand Up @@ -65,7 +66,8 @@ export class MinesAdministrativePenaltyDetailComponent extends AdministrativePen
}

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

navigateToEditPage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h4>Basic Information</h4>
name="recordType"
id="recordType"
type="text"
[value]="this.convertAcronyms(this.myForm.get('issuingAgency').value)"
[value]="this.displayName(this.myForm.get('issuingAgency').value)"
class="form-control"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { LoadingScreenService, LoggerService } from 'nrpti-angular-components';
import { Utils, StoreService } from 'nrpti-angular-components';
import { ChangeDetectorRef } from '@angular/core';
import { takeUntil } from 'rxjs/operators';
import { AgencyDataService } from '../../../../../../../global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-mines-court-convictions-add-edit',
Expand All @@ -17,7 +18,7 @@ import { takeUntil } from 'rxjs/operators';
})
export class MinesCourtConvictionsAddEditComponent extends CourtConvictionAddEditComponent implements OnInit {
public componentTitle = 'BCMI Administrative Penalty Record';
public defaultAgency = 'Ministry of Energy Mines and Low Carbon Innovation';
public defaultAgency = 'AGENCY_EMLI';
public defaultAuthor = 'BC Government';
public currentRecord = null;

Expand Down Expand Up @@ -152,6 +153,11 @@ export class MinesCourtConvictionsAddEditComponent extends CourtConvictionAddEdi
}
}

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

cancel() {
const shouldCancel = confirm(
'Leaving this page will discard unsaved changes. Are you sure you would like to continue?'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { takeUntil } from 'rxjs/operators';
import { CourtConvictionDetailComponent } from '../../../../records/court-convictions/court-conviction-detail/court-conviction-detail.component';
import { RecordUtils } from '../../../../records/utils/record-utils';
import { FactoryService } from '../../../../services/factory.service';
import { StoreService, Utils } from 'nrpti-angular-components';
import { StoreService } from 'nrpti-angular-components';
import { AgencyDataService } from '../../../../../../../global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-mines-court-convictions-detail',
Expand Down Expand Up @@ -64,7 +65,8 @@ export class MinesCourtConvictionsDetailComponent extends CourtConvictionDetailC
}

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

navigateToEditPage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Picklists } from '../../../../../common/src/app/utils/record-constants'
import { FactoryService } from '../../services/factory.service';
import { RecordUtils } from '../../records/utils/record-utils';
import { Constants } from '../../utils/constants/misc';
import { AgencyDataService } from '../../../../../../projects/global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-mines-record-add',
Expand Down Expand Up @@ -38,7 +39,7 @@ export class MinesRecordAddComponent implements OnInit, OnDestroy {
);

// Pick lists
public recordAgencies = Picklists.collectionAgencyPicklist;
public recordAgencies = Picklists.collectionAgencyCodePicklist;
public recordTypeNamesBCMI = Object.values(Picklists.bcmiRecordTypePicklist).map(item => {
return item.displayName;
}).sort();
Expand Down Expand Up @@ -176,7 +177,8 @@ export class MinesRecordAddComponent implements OnInit, OnDestroy {
}

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

ngOnDestroy(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Subject } from 'rxjs';
import { ActivatedRoute, Router } from '@angular/router';
import moment from 'moment';
import { CollectionBCMI } from '../../../../../common/src/app/models/bcmi';
import { Utils } from 'nrpti-angular-components';

import { AgencyDataService } from '../../../../../global/src/lib/utils/agency-data-service';
import { FactoryService } from '../../services/factory.service';
@Component({
selector: 'app-mines-records-detail',
templateUrl: './mines-records-detail.component.html',
Expand All @@ -22,7 +22,8 @@ export class MinesRecordDetailComponent implements OnInit, OnDestroy {
constructor(
public route: ActivatedRoute,
public router: Router,
public changeDetectionRef: ChangeDetectorRef
public changeDetectionRef: ChangeDetectorRef,
public factoryService: FactoryService
) { }

isDisableEdit() {
Expand Down Expand Up @@ -73,7 +74,8 @@ export class MinesRecordDetailComponent implements OnInit, OnDestroy {
}

displayName(agency) {
return Utils.displayNameAcronym(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 @@ -12,6 +12,7 @@ import { ConfirmComponent } from '../../confirm/confirm.component';
import { takeUntil, catchError } from 'rxjs/operators';
import { Constants } from '../../utils/constants/misc';
import { ToastService } from '../../services/toast.service';
import { AgencyDataService } from '../../../../../../projects/global/src/lib/utils/agency-data-service';

@Component({
selector: 'app-mines-records-edit',
Expand Down Expand Up @@ -49,7 +50,7 @@ export class MinesRecordsEditComponent implements OnInit {
}).sort();
public permitTypes = ['OGP', 'AMD'];

public recordAgencies = Picklists.collectionAgencyPicklist;
public recordAgencies = Picklists.collectionAgencyCodePicklist;;

// record add edit state
public recordState = null;
Expand Down Expand Up @@ -286,7 +287,8 @@ export class MinesRecordsEditComponent implements OnInit {
}

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import { FilterObject, FilterType, DateFilterDefinition, CheckOrRadioFilterDefin
import { SubsetsObject, SubsetOption } from '../../../../../common/src/app/search-filter-template/subset-object';
import { Mine } from '../../../../../common/src/app/models/bcmi/mine';
import { MiscUtils } from '../../utils/constants/misc';
import { FactoryService } from '../../services/factory.service';
import { AgencyDataService } from '../../../../../global/src/lib/utils/agency-data-service';

/**
* Mine list page component.
Expand Down Expand Up @@ -121,7 +123,8 @@ export class MinesRecordsListComponent implements OnInit, OnDestroy {
public storeService: StoreService,
private loadingScreenService: LoadingScreenService,
private tableTemplateUtils: TableTemplateUtils,
private _changeDetectionRef: ChangeDetectorRef
private _changeDetectionRef: ChangeDetectorRef,
private factoryService: FactoryService
) {
// setup the subset configuration
const subsetOptions = [
Expand Down Expand Up @@ -155,10 +158,16 @@ export class MinesRecordsListComponent implements OnInit, OnDestroy {
'agency',
FilterType.MultiSelect,
'Responsible Agency',
new MultiSelectDefinition(Picklists.agencyPicklist.map(value => {
const displayValue = Utils.displayNameFull(value);
return { value: value, displayValue: displayValue, selected: false, display: true };
}), 'Begin typing to filter agencies...', '')
new MultiSelectDefinition(
Picklists.getAgencyNames(this.factoryService).map(value => {
const agencyDataService = new AgencyDataService(this.factoryService);
const displayValue = agencyDataService.displayNameFull(value);
const picklistCodes = Picklists.getAgencyCode(this.factoryService, value)
return { value: picklistCodes, displayValue: displayValue, selected: false, display: true };
}),
'Begin typing to filter agencies...',
''
)
);

const sourceSystemFilter = new FilterObject(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FactoryService } from '../../services/factory.service';
import { TableRowComponent } from 'nrpti-angular-components';
import { Router, ActivatedRoute } from '@angular/router';
import { Entity } from '../../../../../common/src/app/models/master/common-models/entity';
import { Utils } from 'nrpti-angular-components';
import { AgencyDataService } from '../../../../../global/src/lib/utils/agency-data-service';

@Component({
selector: 'tr[app-mines-records-table-row]',
Expand Down Expand Up @@ -39,7 +39,8 @@ export class MinesRecordsTableRowComponent extends TableRowComponent implements
}

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

private isDisableEdit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AdministrativeSanctionAddEditComponent implements OnInit, OnDestroy
public nrcedPublishSubtext = 'Not published';

// Pick lists
public agencies = Picklists.agencyCodePicklist;
public agencies = Picklists.getAgencyCodes(this.factoryService);
public authors = Picklists.authorPicklist;
private defaultAgency = '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AnnualReportAddEditComponent implements OnInit, OnDestroy {
public bcmiPublishSubtext = 'Not published';

// Pick lists
public agencies = Picklists.agencyCodePicklist;
public agencies = Picklists.getAgencyCodes(this.factoryService);

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class CertificateAmendmentAddEditComponent implements OnInit, OnDestroy {

// Pick lists
public certificateSubtypes = Picklists.certificateSubtypePicklist;
public agencies = Picklists.agencyCodePicklist;
public agencies = Picklists.getAgencyCodes(this.factoryService);

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class CertificateAddEditComponent implements OnInit, OnDestroy {

// Pick lists
public certificateSubtypes = Picklists.certificateSubtypePicklist;
public agencies = Picklists.agencyCodePicklist;
public agencies = Picklists.getAgencyCodes(this.factoryService);

public datepickerMinDate = Constants.DatepickerMinDate;
public datepickerMaxDate = Constants.DatepickerMaxDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ConstructionPlanAddEditComponent implements OnInit, OnDestroy {
public lngPublishSubtext = 'Not published';

// Pick lists
public agencies = Picklists.agencyCodePicklist;
public agencies = Picklists.getAgencyCodes(this.factoryService);

// Documents
public documents = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class CorrespondenceAddEditComponent implements OnInit, OnDestroy {
public bcmiPublishSubtext = 'Not published';

// Pick lists
public agencies = Picklists.agencyCodePicklist;
public agencies = Picklists.getAgencyCodes(this.factoryService);

// Documents
public documents = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class CourtConvictionAddEditComponent implements OnInit, OnDestroy {
public bcmiPublishSubtext = 'Not published';

// Pick lists
public agencies = Picklists.agencyCodePicklist;
public agencies = Picklists.getAgencyCodes(this.factoryService);
public authors = Picklists.authorPicklist;
public courtConvictionSubtypes = Picklists.courtConvictionSubtypePicklist;
protected defaultAgency = '';
Expand Down
Loading
Loading