fix: misc issues

This commit is contained in:
Jannat Patel
2025-05-31 11:52:25 +05:30
parent ade47b4e83
commit 6f50242f5a
8 changed files with 33 additions and 10 deletions

View File

@@ -293,8 +293,8 @@ const tabsStructure = computed(() => {
type: 'checkbox',
},
{
label: 'Certified Participants',
name: 'certified_participants',
label: 'Certified Members',
name: 'certified_members',
type: 'checkbox',
},
{

View File

@@ -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'

View File

@@ -125,6 +125,9 @@ onMounted(() => {
const jobs = createResource({
url: 'lms.lms.api.get_job_opportunities',
cache: ['jobs'],
onSuccess(data) {
jobCount.value = data.length
},
})
const updateJobs = () => {
@@ -168,10 +171,7 @@ const updateFilters = () => {
const getJobCount = () => {
call('lms.lms.api.get_count', {
doctype: 'Job Opportunity',
filters: {
status: 'Open',
disabled: 0,
},
filters: filters.value,
}).then((data) => {
jobCount.value = data
})