feat: show game name

This commit is contained in:
Settel 2022-02-27 20:59:27 +01:00
parent addfcdea86
commit f667f4cf00

View File

@ -20,6 +20,14 @@
</tr> </tr>
</table> </table>
</AdminTile> </AdminTile>
<AdminTile title="Game">
<table>
<tr>
<td>Name:</td>
<td>{{ gameinfo.name }}</td>
</tr>
</table>
</AdminTile>
<AdminTile title="Players"> <AdminTile title="Players">
<ul> <ul>
<li>Player #1</li> <li>Player #1</li>
@ -44,9 +52,11 @@ export default {
return user && ['gamemaster', 'admin'].indexOf(user.role) != -1 return user && ['gamemaster', 'admin'].indexOf(user.role) != -1
}, },
user() { 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: { methods: {
login() { login() {