mirror of
https://github.com/grey-cat-1908/formaptix-web.git
synced 2024-11-13 19:37:27 +03:00
Update Header.vue
This commit is contained in:
parent
d92b81d5a1
commit
96e23c4b8c
1 changed files with 13 additions and 13 deletions
|
@ -9,23 +9,23 @@ const authStore = useAuthStore()
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<div class="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>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
Loading…
Reference in a new issue