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

20 lines
529 B

<template>
<TopbarNotLoggedIn v-if="!isAuthenticated" />
<TopbarLoggedIn v-if="isAuthenticated" :current-user="currentUser" />
</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 isAuthenticated = computed(
() => store.getters["security/isAuthenticated"]
);
const currentUser = computed(() => store.getters["security/getUser"]);
</script>