Skip to content

Commit

Permalink
Modify logic for showing Required Permits
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwong89 committed Nov 27, 2024
1 parent 2fe1841 commit 563df61
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions frontend/src/views/housing/project/ProjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,6 @@ const permitsSubmitted: ComputedRef<Array<CombinedPermit>> = computed(() => {
.sort(permitBusinessSortFcn);
});
const permitsUnderinvestigation: ComputedRef<Array<CombinedPermit>> = computed(() => {
return permitFilter({
permitNeeded: PermitNeeded.UNDER_INVESTIGATION,
permits: getPermits.value,
permitTypes: getPermitTypes.value
});
});
// Actions
const router = useRouter();
const toast = useToast();
Expand Down Expand Up @@ -240,19 +232,12 @@ onMounted(async () => {
</div>
<div><h3 class="mb-5">Required permits</h3></div>
<div
v-if="permitsUnderinvestigation.length && !permitsNeeded.length"
v-if="!permitsNeeded?.length"
class="empty-block p-5 mb-2"
>
We are investigating the permits required for this project.
We will update the necessary permits here as the project progresses. You may see this message while we are
investigating or if no application is needed at this time.
</div>
<div
v-if="!permitsUnderinvestigation.length && !permitsNeeded.length"
class="empty-block p-5 mb-2"
>
All the necessary permits have been submitted at this time. If additional permits are required as the project
progresses, we will update them here.
</div>

<Card
v-for="permit in permitsNeeded"
:key="permit.permitId"
Expand Down

0 comments on commit 563df61

Please sign in to comment.