diff --git a/src/app/models/project.ts b/src/app/models/project.ts index 269bf015..55801581 100644 --- a/src/app/models/project.ts +++ b/src/app/models/project.ts @@ -53,14 +53,14 @@ export class Project { projectDirector: any; // Options - activitiesAndUpdatesEnabled: Boolean; - contactFormEnabled: Boolean; + activitiesAndUpdatesEnabled: boolean; + contactFormEnabled: boolean; contactFormEmails: string[]; // Permissions. - read: Array = []; - write: Array = []; - delete: Array = []; + read: string[] = []; + write: string[] = []; + delete: string[] = []; pins: any[] = []; currentPeriods: CommentPeriod[]; diff --git a/src/app/projects/add-edit-project/add-edit-project.component.ts b/src/app/projects/add-edit-project/add-edit-project.component.ts index c249df2f..21880e6f 100644 --- a/src/app/projects/add-edit-project/add-edit-project.component.ts +++ b/src/app/projects/add-edit-project/add-edit-project.component.ts @@ -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 ); @@ -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; @@ -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; @@ -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; @@ -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;