Merge pull request #870 from pateljannat/issues-19
fix: better validation message on course creation
This commit is contained in:
@@ -60,7 +60,7 @@ const iconQuery = ref('')
|
||||
const selectedIcon = ref('')
|
||||
const search = ref(null)
|
||||
const emit = defineEmits(['update:modelValue', 'change'])
|
||||
console.log(icons)
|
||||
|
||||
const iconArray = ref(
|
||||
Object.keys(icons)
|
||||
.sort(() => 0.5 - Math.random())
|
||||
@@ -84,7 +84,6 @@ const props = defineProps({
|
||||
|
||||
onMounted(() => {
|
||||
selectedIcon.value = props.modelValue
|
||||
console.log(search.value)
|
||||
})
|
||||
|
||||
const setIcon = (icon, close) => {
|
||||
@@ -111,9 +110,5 @@ const filteredIcons = computed(() => {
|
||||
|
||||
const openPopover = (togglePopover) => {
|
||||
togglePopover()
|
||||
nextTick(() => {
|
||||
/* search.value.focus() */
|
||||
console.log(search.value.children)
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -377,7 +377,7 @@ const submitCourse = () => {
|
||||
})
|
||||
},
|
||||
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"), () => {
|
||||
frappe.call({
|
||||
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:image" content="{{ meta.image }}" />
|
||||
<meta name="twitter:description" content="{{ meta.description }}" />
|
||||
<script type="module" crossorigin src="/assets/lms/frontend/assets/index-Cn4HoVlw.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/lms/frontend/assets/frappe-ui-C28JHUMc.js">
|
||||
<script type="module" crossorigin src="/assets/lms/frontend/assets/index-8W73ALq4.js"></script>
|
||||
<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/index-BUt7GESC.css">
|
||||
<link rel="stylesheet" crossorigin href="/assets/lms/frontend/assets/index-CxRhs9Fi.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
|
||||
Reference in New Issue
Block a user