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
})

View File

@@ -552,7 +552,7 @@ def get_sidebar_settings():
items = [
"courses",
"batches",
"certified_participants",
"certified_members",
"jobs",
"statistics",
"notifications",

View File

@@ -35,6 +35,7 @@
"courses",
"batches",
"certified_participants",
"certified_members",
"column_break_exdz",
"jobs",
"statistics",
@@ -277,6 +278,7 @@
"default": "1",
"fieldname": "certified_participants",
"fieldtype": "Check",
"hidden": 1,
"label": "Certified Participants"
},
{
@@ -397,13 +399,19 @@
"fieldtype": "Check",
"label": "Persona Captured",
"read_only": 1
},
{
"default": "0",
"fieldname": "certified_members",
"fieldtype": "Check",
"label": "Certified Members"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2025-05-14 12:43:22.749850",
"modified": "2025-05-30 19:02:51.381668",
"modified_by": "sayali@frappe.io",
"module": "LMS",
"name": "LMS Settings",

View File

@@ -106,4 +106,5 @@ lms.patches.v2_0.update_job_city_and_country
lms.patches.v2_0.update_course_evaluator_data
lms.patches.v2_0.move_zoom_settings #20-05-2025
lms.patches.v2_0.link_zoom_account_to_live_class
lms.patches.v2_0.link_zoom_account_to_batch
lms.patches.v2_0.link_zoom_account_to_batch
lms.patches.v2_0.sidebar_for_certified_members

View File

@@ -7,6 +7,10 @@ def execute():
def create_settings():
current_settings = frappe.get_single("Zoom Settings")
if not current_settings.enable:
return
member = current_settings.owner
member_name = frappe.get_value("User", member, "full_name")

View File

@@ -0,0 +1,10 @@
import frappe
def execute():
show_certified_members = frappe.db.get_single_value(
"LMS Settings", "certified_participants"
)
if show_certified_members:
frappe.db.set_single_value("LMS Settings", "certified_members", 1)