fix: job application count
This commit is contained in:
@@ -79,6 +79,17 @@
|
|||||||
<span>{{ job.data.type }}</span>
|
<span>{{ job.data.type }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center space-x-2">
|
||||||
|
<CalendarDays class="h-4 w-4 stroke-1.5" />
|
||||||
|
<span>{{
|
||||||
|
dayjs(job.data.creation).format('DD MMM YYYY')
|
||||||
|
}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 h-fit">
|
||||||
|
<div
|
||||||
|
v-if="applicationCount.data"
|
||||||
|
class="flex items-center space-x-2"
|
||||||
|
>
|
||||||
<SquareUserRound class="h-4 w-4 stroke-1.5" />
|
<SquareUserRound class="h-4 w-4 stroke-1.5" />
|
||||||
<span
|
<span
|
||||||
>{{ applicationCount.data }}
|
>{{ applicationCount.data }}
|
||||||
@@ -86,14 +97,6 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-1 h-fit">
|
|
||||||
<div class="flex items-center space-x-2">
|
|
||||||
<CalendarDays class="h-4 w-4 stroke-1.5" />
|
|
||||||
<span>{{
|
|
||||||
dayjs(job.data.creation).format('DD MMM YYYY')
|
|
||||||
}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -146,6 +149,7 @@ const job = createResource({
|
|||||||
if (user.data?.name) {
|
if (user.data?.name) {
|
||||||
jobApplication.submit()
|
jobApplication.submit()
|
||||||
}
|
}
|
||||||
|
applicationCount.submit()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -172,7 +176,6 @@ const applicationCount = createResource({
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
auto: true,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const openApplicationModal = () => {
|
const openApplicationModal = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user