change username to user

This commit is contained in:
Adrian Zürcher
2026-02-19 10:51:09 +01:00
parent ab88acd740
commit e686a27bf1
6 changed files with 23 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
<q-btn dense flat round icon="person" :color="currentUser ? 'green' : ''">
<q-menu ref="refLoginMenu">
<q-list style="min-width: 120px">
<q-item v-if="user.user" class="text-primary">{{ currentUser?.username }}</q-item>
<q-item v-if="user.user" class="text-primary">{{ currentUser?.user }}</q-item>
<q-item v-if="showLogin" clickable v-close-popup @click="openLogin">
<q-item-section class="text-primary">{{ loginText }}</q-item-section>
</q-item>
@@ -69,7 +69,7 @@ const darkMode = computed(() => {
return 'dark_mode';
});
const showLogin = computed(
() => (route.path !== '/' && route.path !== '/login') || currentUser.value?.username === '',
() => (route.path !== '/' && route.path !== '/login') || currentUser.value?.user === '',
);
const autorized = computed(() => !!user.isAuthorizedAs(['admin']));