refactor: /admin is now /gamemaster

This commit is contained in:
Settel 2022-03-16 13:33:36 +01:00
parent cd2ae2905d
commit bc16941521
2 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<template>
<nav v-if="isGamemaster" class="gamecontrols">
<div v-if="$route.path != '/admin'">
<button @click="go('/admin')">admin interface</button>
<div v-if="$route.path != '/gamemaster'">
<button @click="go('/gamemaster')">admin interface</button>
<button :disabled="buttonsDisabled.collect" @click="collectQuotes">Collect Quotes</button>
<button :disabled="buttonsDisabled.start" @click="startGame">Start</button>
<button :disabled="buttonsDisabled.continue" @click="continueGame">Continue</button>

View File

@ -1,15 +1,15 @@
<template>
<div class="page-admin">
<div class="page-gamemaster">
<template v-if="!isGamemasterOrAdmin">
<p>You are not a game master.</p>
</template>
<template v-if="isGamemasterOrAdmin">
<GameControls />
<div class="page-admin__body">
<div v-if="overlay.open" class="page-admin__player-overlay">
<div class="page-gamemaster__body">
<div v-if="overlay.open" class="page-gamemaster__player-overlay">
<AdminEditPlayer :player="overlay.player" @close="editPlayerClose"/>
</div>
<div class="page-admin__tiles">
<div class="page-gamemaster__tiles">
<AdminTileMyself :user="user" />
<AdminTileGameinfo :gameinfo="gameinfo" :players="players" />
<AdminTilePlayers :gameinfo="gameinfo" :players="players" @edit="editPlayer" />
@ -65,7 +65,7 @@ export default {
<style lang="scss">
@import '~/assets/css/components';
.page-admin {
.page-gamemaster {
color: #ffffff;
width: 100%;
height: 100%;