-
-
- {{ __('No {0} courses found').format(tab.label.toLowerCase()) }}
-
+
+
+ {{ __("No courses found") }}
+
+
+ {{ __("There are no courses available at the moment. Keep an eye out, fresh learning experiences are on the way soon!") }}
@@ -127,13 +154,14 @@ import {
createResource,
} from 'frappe-ui'
import CourseCard from '@/components/CourseCard.vue'
-import { Plus, Search } from 'lucide-vue-next'
+import { BookOpen, Plus, Search } from 'lucide-vue-next'
import { ref, computed, inject, onMounted, watch } from 'vue'
import { updateDocumentTitle } from '@/utils'
const user = inject('$user')
const searchQuery = ref('')
const currentCategory = ref(null)
+const noCoursesFound = ref(false)
onMounted(() => {
let queries = new URLSearchParams(location.search)
@@ -145,7 +173,7 @@ onMounted(() => {
const courses = createResource({
url: 'lms.lms.utils.get_courses',
cache: ['courses', user.data?.email],
- auto: true,
+ auto: true
})
const tabIndex = ref(0)
diff --git a/frontend/src/pages/LessonForm.vue b/frontend/src/pages/LessonForm.vue
index dee621fd..80c1ee1d 100644
--- a/frontend/src/pages/LessonForm.vue
+++ b/frontend/src/pages/LessonForm.vue
@@ -69,7 +69,7 @@