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 Dec 2, 2024
1 parent 53b9cf1 commit 8db2599
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 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 Expand Up @@ -286,12 +271,12 @@ onMounted(async () => {
v-if="!permitsSubmitted.length"
class="empty-block p-5"
>
You will see your permit applications here once submitted.
We will update your submitted applications here as the project progresses.
</div>
<Card
v-for="permit in permitsSubmitted"
:key="permit.permitId"
class="permit-card--hover mb-2"
class="permit-card--hover mb-3"
@click="
() => {
permitModalVisible = true;
Expand Down

0 comments on commit 8db2599

Please sign in to comment.