Display: Show better sidebar course loading

pull/5331/head
daniboygg 1 year ago
parent 573021016a
commit 01f5530b12
  1. 4
      assets/vue/components/basecomponents/ChamiloIcons.js
  2. 23
      assets/vue/components/layout/Sidebar.vue

@ -92,8 +92,8 @@ export const chamiloIconToClass = {
"sent": "mdi mdi-send-check", "sent": "mdi mdi-send-check",
"stop": "mdi mdi-stop", "stop": "mdi mdi-stop",
"swap-vertical": "mdi mdi-swap-vertical", "swap-vertical": "mdi mdi-swap-vertical",
"sync": "", "sync": "mdi mdi-sync",
"sync-circle": "", "sync-circle": "mdi mdi-sync-circle",
"table": "mdi mdi-table", "table": "mdi mdi-table",
"tag-outline": "mdi mdi-tag-outline", "tag-outline": "mdi mdi-tag-outline",
"text-box-plus": "", "text-box-plus": "",

@ -15,16 +15,23 @@
/> />
<div <div
v-else v-else
class="flex mx-7 mb-2 -my-1 py-2 gap-2 mr-3" class="flex mx-7 my-1.5 py-2 ml-8 gap-4"
> >
<Skeleton <BaseIcon
height="1.5rem" size="small"
width="1.5rem" class="text-sm"
icon="courses"
/> />
<Skeleton <div
v-if="sidebarIsOpen" v-if="sidebarIsOpen"
height="1.5rem" class="font-bold text-sm self-center"
width="7rem" >
{{ t("Course") }}
</div>
<BaseIcon
size="small"
class="text-sm animate-spin"
icon="sync"
/> />
</div> </div>
<PanelMenu :model="menuItemsAfterMyCourse" /> <PanelMenu :model="menuItemsAfterMyCourse" />
@ -71,7 +78,7 @@ import { useSecurityStore } from "../../store/securityStore"
import { useSidebarMenu } from "../../composables/sidebarMenu" import { useSidebarMenu } from "../../composables/sidebarMenu"
import PageList from "../page/PageList.vue" import PageList from "../page/PageList.vue"
import { useEnrolledStore } from "../../store/enrolledStore" import { useEnrolledStore } from "../../store/enrolledStore"
import Skeleton from "primevue/skeleton" import BaseIcon from "../basecomponents/BaseIcon.vue"
const { t } = useI18n() const { t } = useI18n()
const securityStore = useSecurityStore() const securityStore = useSecurityStore()

Loading…
Cancel
Save