tornado-initiation-ui/components/Navbar.vue

54 lines
1.1 KiB
Vue
Raw Normal View History

2020-10-12 19:41:52 +02:00
<template>
<b-navbar wrapper-class="container" class="header">
<template slot="brand">
<b-navbar-item tag="router-link" to="/" active-class="">
<Logo />
</b-navbar-item>
</template>
2020-10-13 09:49:08 +02:00
<template slot="start">
<b-navbar-item>Info</b-navbar-item>
</template>
<template slot="end">
<b-navbar-item tag="div">
<div class="buttons">
<b-button
v-if="isLoggedIn"
type="is-primary"
outlined
icon-left="logout"
@click="onLogOut"
>Logout</b-button
>
<b-button
v-else
type="is-primary"
outlined
icon-left="wallet"
@click="onLogIn"
>Connect</b-button
>
</div>
</b-navbar-item>
</template>
2020-10-12 19:41:52 +02:00
</b-navbar>
</template>
<script>
import Logo from '@/components/Logo'
export default {
components: {
Logo,
},
2020-10-13 09:49:08 +02:00
data() {
return {
isLoggedIn: false,
}
},
methods: {
onLogIn() {},
onLogOut() {},
},
2020-10-12 19:41:52 +02:00
}
</script>