Home now shows something meaningful
This commit is contained in:
parent
cc2da96829
commit
5f80cef54f
1 changed files with 7 additions and 9 deletions
|
@ -1,9 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<h3>Hiiiii</h3>
|
||||
<span v-if="authenticated">Logged in
|
||||
<button v-on:click="logout()" class="button">Logout</button>
|
||||
</span>
|
||||
<div class="content has-text-centered">
|
||||
<h2>Hi {{user.infos.username}}!</h2>
|
||||
<p>Click on a list or namespace on the left to get started.</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -15,7 +13,7 @@
|
|||
name: "Home",
|
||||
data() {
|
||||
return {
|
||||
authenticated: auth.user.authenticated
|
||||
user: auth.user
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
|
@ -25,7 +23,7 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
logout () {
|
||||
logout() {
|
||||
auth.logout()
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue