Skip to content

Commit

Permalink
DESENG-373 Update from PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Mar 5, 2024
1 parent 220dd1c commit e736d8c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/app/models/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ export class Project {
projectDirector: any;

// Options
activitiesAndUpdatesEnabled: Boolean;
contactFormEnabled: Boolean;
activitiesAndUpdatesEnabled: boolean;
contactFormEnabled: boolean;
contactFormEmails: string[];

// Permissions.
read: Array<String> = [];
write: Array<String> = [];
delete: Array<String> = [];
read: string[] = [];
write: string[] = [];
delete: string[] = [];

pins: any[] = [];
currentPeriods: CommentPeriod[];
Expand Down
10 changes: 5 additions & 5 deletions src/app/projects/add-edit-project/add-edit-project.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class AddEditProjectComponent implements OnInit, AfterViewInit, OnDestroy

this.route.data.subscribe((res: any) => {
if (res && res.documents && res.documents[0].data.meta && res.documents[0].data.meta.length > 0) {
let returnedDocuments = res.documents[0].data.searchResults;
const returnedDocuments = res.documents[0].data.searchResults;
this.shapefileDocuments = returnedDocuments.filter((document) => document.documentSource === 'SHAPEFILE' ? document : null );
this.allBannerImageDocuments = returnedDocuments.filter((document) => document.documentSource === 'BANNER' ? document : null );

Expand Down Expand Up @@ -267,7 +267,7 @@ export class AddEditProjectComponent implements OnInit, AfterViewInit, OnDestroy
* Getter to be able to access the existingLandUsePlans FormControl
* as a FormArray.
*
* @returns {void}
* @returns {FormArray}
*/
get existingLandUsePlans(): FormArray {
return this.myForm.get('existingLandUsePlans') as FormArray;
Expand All @@ -277,7 +277,7 @@ export class AddEditProjectComponent implements OnInit, AfterViewInit, OnDestroy
* Getter to be able to access the agreements FormControl
* as a FormArray.
*
* @returns {void}
* @returns {FormArray}
*/
get agreements(): FormArray {
return this.myForm.get('agreements') as FormArray;
Expand All @@ -287,7 +287,7 @@ export class AddEditProjectComponent implements OnInit, AfterViewInit, OnDestroy
* Getter to be able to access the logos FormControl
* as a FormArray.
*
* @returns {void}
* @returns {FormArray}
*/
get logos(): FormArray {
return this.myForm.get('logos') as FormArray;
Expand All @@ -297,7 +297,7 @@ export class AddEditProjectComponent implements OnInit, AfterViewInit, OnDestroy
* Getter to be able to access the contactFormEmails FormControl
* as a FormArray.
*
* @returns {void}
* @returns {FormArray}
*/
get contactFormEmails(): FormArray {
return this.myForm.get('contactFormEmails') as FormArray;
Expand Down

0 comments on commit e736d8c

Please sign in to comment.