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/Topbar.vue

23 lines
614 B

<template>
<TopbarNotLoggedIn v-if="!isAuthenticated" />
<TopbarLoggedIn
v-if="isAuthenticated"
:current-user="currentUser"
:platform-settings="platformSettings"
/>
</template>
<script setup>
import {useStore} from "vuex";
import TopbarLoggedIn from "./TopbarLoggedIn.vue";
import TopbarNotLoggedIn from "./TopbarNotLoggedIn.vue";
import {computed} from "vue";
const store = useStore();
const platformSettings = window.config;
const isAuthenticated = computed(() => store.getters['security/isAuthenticated']);
const currentUser = computed(() => store.getters['security/getUser']);
</script>