Update Header.vue

This commit is contained in:
Vyacheslav 2024-08-23 14:52:01 +03:00
parent d92b81d5a1
commit 96e23c4b8c

View file

@ -9,23 +9,23 @@ const authStore = useAuthStore()
<header class="header">
<div class="header-container">
<div class="container">
<h1 class="">{{ getTitle() }}</h1>
<h1>{{ getTitle() }}</h1>
<div v-if="authStore.isAuthorized">
<button type="button">
{{ authStore.user.username }}
</button>
<button type="button" @click="authStore.logout">leave</button>
</div>
<div v-else>
<button type="button" @click="authStore.authDialogOpened = !authStore.authDialogOpened">
Войти
</button>
</div>
</div>
</div>
</header>
<h1>{{ getTitle() }}</h1>
<div v-if="authStore.isAuthorized">
<button type="button">
{{ authStore.user.username }}
</button>
<button type="button" @click="authStore.logout">leave</button>
</div>
<div v-else>
<button type="button" @click="authStore.authDialogOpened = !authStore.authDialogOpened">
Войти
</button>
</div>
</template>
<style scoped></style>