feat: show game name
This commit is contained in:
parent
addfcdea86
commit
f667f4cf00
@ -20,6 +20,14 @@
|
||||
</tr>
|
||||
</table>
|
||||
</AdminTile>
|
||||
<AdminTile title="Game">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Name:</td>
|
||||
<td>{{ gameinfo.name }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</AdminTile>
|
||||
<AdminTile title="Players">
|
||||
<ul>
|
||||
<li>Player #1</li>
|
||||
@ -44,9 +52,11 @@ export default {
|
||||
return user && ['gamemaster', 'admin'].indexOf(user.role) != -1
|
||||
},
|
||||
user() {
|
||||
console.log(this.$store.state.engine.user)
|
||||
return this.$store.state.engine.user
|
||||
return this.$store.state.engine.user || {}
|
||||
},
|
||||
gameinfo() {
|
||||
return this.$store.state.engine.gameinfo || {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
login() {
|
||||
|
Loading…
Reference in New Issue
Block a user