Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/vue/components/layout/DashboardLayout.vue

44 lines
911 B

<template>
<Topbar />
<Sidebar v-if="isAuthenticated" />
<div
class="app-main"
:class="{ 'app-main--no-sidebar': !isAuthenticated }"
>
<Breadcrumb
v-if="showBreadcrumb"
:legacy="breadcrumb"
/>
<slot />
<router-view />
</div>
</template>
<script setup>
import Breadcrumb from '../../components/Breadcrumb.vue';
import Topbar from '../../components/layout/Topbar.vue';
import Sidebar from '../../components/layout/Sidebar.vue';
import {useStore} from "vuex";
import {computed} from "vue";
// eslint-disable-next-line no-undef
defineProps({
showBreadcrumb: {
type: Boolean,
default: true,
},
});
const store = useStore();
const isAuthenticated = computed(() => store.getters['security/isAuthenticated']);
let breadcrumb = [];
try {
if (window.breadcrumb) {
breadcrumb = window.breadcrumb;
}
} catch (e) {
console.log(e.message);
}
</script>