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

View File

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