fix: better validation message on course creation
This commit is contained in:
@@ -60,7 +60,7 @@ const iconQuery = ref('')
|
|||||||
const selectedIcon = ref('')
|
const selectedIcon = ref('')
|
||||||
const search = ref(null)
|
const search = ref(null)
|
||||||
const emit = defineEmits(['update:modelValue', 'change'])
|
const emit = defineEmits(['update:modelValue', 'change'])
|
||||||
console.log(icons)
|
|
||||||
const iconArray = ref(
|
const iconArray = ref(
|
||||||
Object.keys(icons)
|
Object.keys(icons)
|
||||||
.sort(() => 0.5 - Math.random())
|
.sort(() => 0.5 - Math.random())
|
||||||
@@ -84,7 +84,6 @@ const props = defineProps({
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
selectedIcon.value = props.modelValue
|
selectedIcon.value = props.modelValue
|
||||||
console.log(search.value)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const setIcon = (icon, close) => {
|
const setIcon = (icon, close) => {
|
||||||
@@ -111,9 +110,5 @@ const filteredIcons = computed(() => {
|
|||||||
|
|
||||||
const openPopover = (togglePopover) => {
|
const openPopover = (togglePopover) => {
|
||||||
togglePopover()
|
togglePopover()
|
||||||
nextTick(() => {
|
|
||||||
/* search.value.focus() */
|
|
||||||
console.log(search.value.children)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ const submitCourse = () => {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onError(err) {
|
onError(err) {
|
||||||
showToast(err)
|
showToast('Error', err.messages?.[0] || err, 'x')
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ frappe.ui.form.on("LMS Certificate Request", {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (!frm.google_meet_link) {
|
if (!frm.doc.google_meet_link) {
|
||||||
frm.add_custom_button(__("Generate Google Meet Link"), () => {
|
frm.add_custom_button(__("Generate Google Meet Link"), () => {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "lms.lms.doctype.lms_certificate_request.lms_certificate_request.setup_calendar_event",
|
method: "lms.lms.doctype.lms_certificate_request.lms_certificate_request.setup_calendar_event",
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
<meta name="twitter:title" content="{{ meta.title }}" />
|
<meta name="twitter:title" content="{{ meta.title }}" />
|
||||||
<meta name="twitter:image" content="{{ meta.image }}" />
|
<meta name="twitter:image" content="{{ meta.image }}" />
|
||||||
<meta name="twitter:description" content="{{ meta.description }}" />
|
<meta name="twitter:description" content="{{ meta.description }}" />
|
||||||
<script type="module" crossorigin src="/assets/lms/frontend/assets/index-Cn4HoVlw.js"></script>
|
<script type="module" crossorigin src="/assets/lms/frontend/assets/index-8W73ALq4.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/lms/frontend/assets/frappe-ui-C28JHUMc.js">
|
<link rel="modulepreload" crossorigin href="/assets/lms/frontend/assets/frappe-ui-vM9kBbGH.js">
|
||||||
<link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/frappe-ui-DzKBfka9.css">
|
<link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/frappe-ui-DzKBfka9.css">
|
||||||
<link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/index-BUt7GESC.css">
|
<link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/index-CxRhs9Fi.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
|||||||
Reference in New Issue
Block a user