chore: don't show debug panel by default
This commit is contained in:
parent
908080cde6
commit
ff617fc7ea
@ -32,11 +32,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
showDebugPanel() {
|
showDebugPanel() {
|
||||||
const user = this.$store.state.engine.user
|
return this.$route.query && this.$route.query.debug
|
||||||
if (this.$route.query && this.$route.query.debug) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
return user && ['gamemaster', 'admin'].indexOf(user.role) != -1
|
|
||||||
},
|
},
|
||||||
gameState() {
|
gameState() {
|
||||||
return this.$store.state.game.state
|
return this.$store.state.game.state
|
||||||
|
Loading…
Reference in New Issue
Block a user