Skip to content

Commit

Permalink
Show residential warning for accessory structures
Browse files Browse the repository at this point in the history
  • Loading branch information
trslater committed Nov 4, 2024
1 parent dcb90b1 commit 3ae8fde
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,11 @@ export class PfrsProposalComponent extends FilesStepComponent implements OnInit,
}

isWarning(index: number, item: ProposedStructure): boolean {
return item.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE || item.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE;
return (
item.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE ||
item.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE ||
item.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE
);
}

onStructureRemove(id: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,11 @@ export class PofoProposalComponent extends FilesStepComponent implements OnInit,
}

isWarning(index: number, item: ProposedStructure): boolean {
return item.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE || item.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE;
return (
item.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE ||
item.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE ||
item.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE
);
}

onStructureRemove(id: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ export class RosoProposalComponent extends FilesStepComponent implements OnInit,
}

isWarning(index: number, item: ProposedStructure): boolean {
return item.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE || item.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE;
return (
item.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE ||
item.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE ||
item.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE
);
}

onStructureRemove(id: string) {
Expand Down

0 comments on commit 3ae8fde

Please sign in to comment.