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.
23 lines
614 B
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>
|
|
|