fix: made address amount and currency mandatory in LMS Payment
This commit is contained in:
@@ -22,11 +22,13 @@
|
||||
<span class="font-semibold leading-5">
|
||||
{{ evl.course_title }}
|
||||
</span>
|
||||
<Menu v-if="evl.date > dayjs().format()" as="div" class="relative inline-block text-left">
|
||||
<Menu
|
||||
v-if="evl.date > dayjs().format()"
|
||||
as="div"
|
||||
class="relative inline-block text-left"
|
||||
>
|
||||
<div>
|
||||
<MenuButton
|
||||
class="inline-flex w-full justify-center"
|
||||
>
|
||||
<MenuButton class="inline-flex w-full justify-center">
|
||||
<EllipsisVertical class="w-4 h-4 stroke-1.5" />
|
||||
</MenuButton>
|
||||
</div>
|
||||
@@ -43,15 +45,19 @@
|
||||
class="absolute mt-2 w-32 rounded-md bg-white shadow-lg p-1.5"
|
||||
>
|
||||
<MenuItem v-slot="{ active }">
|
||||
<Button variant="ghost" class="w-full" @click="cancelEvaluation(evl)">
|
||||
<Button
|
||||
variant="ghost"
|
||||
class="w-full"
|
||||
@click="cancelEvaluation(evl)"
|
||||
>
|
||||
<template #prefix>
|
||||
<Ban
|
||||
:active="active"
|
||||
class="size-4 stroke-1.5"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
/>
|
||||
</template>
|
||||
{{ __("Cancel") }}
|
||||
{{ __('Cancel') }}
|
||||
</Button>
|
||||
</MenuItem>
|
||||
</MenuItems>
|
||||
@@ -111,7 +117,7 @@ import {
|
||||
Clock,
|
||||
GraduationCap,
|
||||
HeadsetIcon,
|
||||
EllipsisVertical
|
||||
EllipsisVertical,
|
||||
} from 'lucide-vue-next'
|
||||
import { inject, ref, getCurrentInstance } from 'vue'
|
||||
import { formatTime } from '../utils'
|
||||
|
||||
@@ -126,7 +126,7 @@ const toggleTheme = () => {
|
||||
const userDropdownOptions = computed(() => {
|
||||
return [
|
||||
{
|
||||
group: "",
|
||||
group: '',
|
||||
items: [
|
||||
{
|
||||
icon: User,
|
||||
@@ -148,7 +148,9 @@ const userDropdownOptions = computed(() => {
|
||||
{
|
||||
component: markRaw(Apps),
|
||||
condition: () => {
|
||||
let cookies = new URLSearchParams(document.cookie.split('; ').join('&'))
|
||||
let cookies = new URLSearchParams(
|
||||
document.cookie.split('; ').join('&')
|
||||
)
|
||||
let system_user = cookies.get('system_user')
|
||||
if (system_user === 'yes') return true
|
||||
else return false
|
||||
@@ -187,18 +189,19 @@ const userDropdownOptions = computed(() => {
|
||||
},
|
||||
condition: () => {
|
||||
return (
|
||||
userResource.data?.is_system_manager && userResource.data?.is_fc_site
|
||||
userResource.data?.is_system_manager &&
|
||||
userResource.data?.is_fc_site
|
||||
)
|
||||
},
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
group: "",
|
||||
group: '',
|
||||
items: [
|
||||
{
|
||||
icon: Zap,
|
||||
label: "Powered by Learning",
|
||||
label: 'Powered by Learning',
|
||||
onClick: () => {
|
||||
window.open('https://frappe.io/learning', '_blank')
|
||||
},
|
||||
@@ -225,8 +228,8 @@ const userDropdownOptions = computed(() => {
|
||||
return !isLoggedIn
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
@@ -1957,7 +1957,7 @@ def update_certificate_purchase(course, payment_name):
|
||||
{
|
||||
"purchased_certificate": 1,
|
||||
"payment": payment_name,
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user