chore: resolved conflicts
This commit is contained in:
@@ -106,7 +106,6 @@ const courses = createResource({
|
||||
params: {
|
||||
batch: props.batch,
|
||||
},
|
||||
cache: ['batchCourses', props.batchName],
|
||||
auto: true,
|
||||
})
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ const tabsStructure = computed(() => {
|
||||
},
|
||||
{
|
||||
label: 'Certified Members',
|
||||
name: 'certified_participants',
|
||||
name: 'certified_members',
|
||||
type: 'checkbox',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
</button>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Tooltip, Button } from 'frappe-ui'
|
||||
import { Tooltip } from 'frappe-ui'
|
||||
import { computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import * as icons from 'lucide-vue-next'
|
||||
|
||||
@@ -12,10 +12,7 @@
|
||||
</Button>
|
||||
</router-link>
|
||||
</header>
|
||||
<div
|
||||
v-if="participants.data?.length"
|
||||
class="mx-auto w-full max-w-4xl pt-6 pb-10"
|
||||
>
|
||||
<div class="mx-auto w-full max-w-4xl pt-6 pb-10">
|
||||
<div class="flex flex-col md:flex-row justify-between mb-4 px-3">
|
||||
<div class="text-xl font-semibold text-ink-gray-7 mb-4 md:mb-0">
|
||||
{{ memberCount }} {{ __('certified members') }}
|
||||
@@ -41,7 +38,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="divide-y">
|
||||
<div v-if="participants.data?.length" class="divide-y">
|
||||
<template v-for="participant in participants.data">
|
||||
<router-link
|
||||
:to="{
|
||||
@@ -92,6 +89,7 @@
|
||||
</router-link>
|
||||
</template>
|
||||
</div>
|
||||
<EmptyState v-else type="Certified Members" />
|
||||
<div
|
||||
v-if="!participants.list.loading && participants.hasNextPage"
|
||||
class="flex justify-center mt-5"
|
||||
@@ -101,7 +99,6 @@
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<EmptyState v-else type="Certified Members" />
|
||||
</template>
|
||||
<script setup>
|
||||
import {
|
||||
@@ -134,9 +131,8 @@ onMounted(() => {
|
||||
const participants = createListResource({
|
||||
doctype: 'LMS Certificate',
|
||||
url: 'lms.lms.api.get_certified_participants',
|
||||
cache: ['certified_participants'],
|
||||
start: 0,
|
||||
pageLength: 30,
|
||||
pageLength: 100,
|
||||
})
|
||||
|
||||
const getMemberCount = () => {
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
</header>
|
||||
<div>
|
||||
<div
|
||||
v-if="jobCount"
|
||||
class="flex flex-col lg:flex-row space-y-4 lg:space-y-0 lg:items-center justify-between w-full md:w-4/5 mx-auto p-5"
|
||||
>
|
||||
<div class="text-xl font-semibold text-ink-gray-7 mb-4 md:mb-0">
|
||||
@@ -34,7 +33,6 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="jobs.data?.length || jobCount > 0"
|
||||
class="grid grid-cols-1 gap-2"
|
||||
:class="user.data ? 'md:grid-cols-3' : 'md:grid-cols-2'"
|
||||
>
|
||||
@@ -119,12 +117,14 @@ onMounted(() => {
|
||||
jobType.value = queries.get('type')
|
||||
}
|
||||
updateJobs()
|
||||
getJobCount()
|
||||
})
|
||||
|
||||
const jobs = createResource({
|
||||
url: 'lms.lms.api.get_job_opportunities',
|
||||
cache: ['jobs'],
|
||||
onSuccess(data) {
|
||||
jobCount.value = data.length
|
||||
},
|
||||
})
|
||||
|
||||
const updateJobs = () => {
|
||||
@@ -165,18 +165,6 @@ const updateFilters = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const getJobCount = () => {
|
||||
call('lms.lms.api.get_count', {
|
||||
doctype: 'Job Opportunity',
|
||||
filters: {
|
||||
status: 'Open',
|
||||
disabled: 0,
|
||||
},
|
||||
}).then((data) => {
|
||||
jobCount.value = data
|
||||
})
|
||||
}
|
||||
|
||||
watch(country, (val) => {
|
||||
updateJobs()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user