mirror of
https://github.com/grey-cat-1908/formaptix-web.git
synced 2024-09-22 19:21:59 +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">
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue