Skip to content

Commit 2f44b9a

Browse files
revert: conditionally show link to family
1 parent eaf5d8e commit 2f44b9a

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

app/pages/portal.vue

+3-16
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ const { currentState } = useAppState();
66
definePageMeta({
77
middleware: ['require-auth']
88
});
9-
10-
const { status } = useFetch('/api/family/myFamily', {
11-
lazy: false
12-
});
139
</script>
1410

1511
<template>
@@ -57,14 +53,11 @@ const { status } = useFetch('/api/family/myFamily', {
5753
</CardDetails>
5854
<CardDetails v-else>
5955
<strong>Parent's survey & proposals. [CLOSED]</strong>
60-
<CardText v-if="status == 'success'">
56+
<CardText>
6157
Visit your
6258
<NuxtLink to="/family">family page</NuxtLink>
6359
to see your family details.
6460
</CardText>
65-
<CardText v-else-if="status == 'error'">
66-
Sorry, we could not fetch your family details. Please try again.
67-
</CardText>
6861
</CardDetails>
6962
</div>
7063
<div v-else-if="currentState == 'freshers_open'">
@@ -78,14 +71,11 @@ const { status } = useFetch('/api/family/myFamily', {
7871
</CardDetails>
7972
<CardDetails v-else>
8073
<strong>Parent's survey & proposals. [CLOSED]</strong>
81-
<CardText v-if="status == 'success'">
74+
<CardText>
8275
Visit your
8376
<NuxtLink to="/family">family page</NuxtLink>
8477
to see your family details.
8578
</CardText>
86-
<CardText v-else-if="status == 'error'">
87-
Sorry, we could not fetch your family details. Please try again.
88-
</CardText>
8979
</CardDetails>
9080
</div>
9181
<div v-else-if="currentState == 'closed'">
@@ -98,14 +88,11 @@ const { status } = useFetch('/api/family/myFamily', {
9888
}}
9989
[CLOSED]
10090
</strong>
101-
<CardText v-if="status == 'success'">
91+
<CardText>
10292
Visit your
10393
<NuxtLink to="/family">family page</NuxtLink>
10494
to see your family details.
10595
</CardText>
106-
<CardText v-else-if="status == 'error'">
107-
Sorry, we could not fetch your family details. Please try again.
108-
</CardText>
10996
</CardDetails>
11097
</div>
11198
</div>

0 commit comments

Comments
 (0)