change username to user
This commit is contained in:
@@ -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']));
|
||||
|
||||
Reference in New Issue
Block a user