fix: minor issues
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
v-if="userResource"
|
v-if="userResource"
|
||||||
class="mt-1 text-sm text-gray-700 leading-none"
|
class="mt-1 text-sm text-gray-700 leading-none"
|
||||||
>
|
>
|
||||||
{{ convertToTitleCase(userResource.data?.email.split('@')[0]) }}
|
{{ convertToTitleCase(userResource.data?.full_name) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Breadcrumbs, FormControl, createResource } from 'frappe-ui'
|
import { Breadcrumbs, FormControl, createResource, debounce } from 'frappe-ui'
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import UserAvatar from '@/components/UserAvatar.vue'
|
import UserAvatar from '@/components/UserAvatar.vue'
|
||||||
import { Search } from 'lucide-vue-next'
|
import { Search } from 'lucide-vue-next'
|
||||||
@@ -61,7 +61,8 @@ const searchQuery = ref('')
|
|||||||
const participants = createResource({
|
const participants = createResource({
|
||||||
url: 'lms.lms.api.get_certified_participants',
|
url: 'lms.lms.api.get_certified_participants',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
cache: ['certified_participants'],
|
debounce: 300,
|
||||||
|
cache: ['certified_participants', searchQuery.value],
|
||||||
makeParams() {
|
makeParams() {
|
||||||
return {
|
return {
|
||||||
search_query: searchQuery.value,
|
search_query: searchQuery.value,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"actions": [],
|
"actions": [],
|
||||||
|
"allow_import": 1,
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"autoname": "format:QTS-{YYYY}-{#####}",
|
"autoname": "format:QTS-{YYYY}-{#####}",
|
||||||
"creation": "2023-10-10 10:24:14.035772",
|
"creation": "2023-10-10 10:24:14.035772",
|
||||||
@@ -194,7 +195,7 @@
|
|||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-10-18 21:58:42.653317",
|
"modified": "2024-05-24 16:12:26.331351",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "LMS Question",
|
"name": "LMS Question",
|
||||||
|
|||||||
Reference in New Issue
Block a user