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.
28 lines
853 B
28 lines
853 B
<template>
|
|
<Topbar v-if="!hideInterface" />
|
|
<Sidebar v-if="!hideInterface && securityStore.isAuthenticated" />
|
|
<div v-if="!hideInterface" class="app-main" :class="{ 'app-main--no-sidebar': !securityStore.isAuthenticated }">
|
|
<Breadcrumb v-if="showBreadcrumb" />
|
|
<slot />
|
|
<router-view />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from "vue"
|
|
import Breadcrumb from "../../components/Breadcrumb.vue"
|
|
import Topbar from "../../components/layout/Topbar.vue"
|
|
import Sidebar from "../../components/layout/Sidebar.vue"
|
|
import { useSecurityStore } from "../../store/securityStore"
|
|
|
|
defineProps({
|
|
showBreadcrumb: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
})
|
|
|
|
const securityStore = useSecurityStore()
|
|
const chamiloAppSettings = window.ChamiloAppSettings || {}
|
|
const hideInterface = ref(!!chamiloAppSettings.hideInterface)
|
|
</script>
|
|
|