fix: disable purchsing apprentices and spending energy after time stops

This commit is contained in:
pskfyi 2022-01-15 00:54:40 -08:00 committed by pskfyi
parent 03cb459114
commit e2dead5ccc
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
:value="$store.state.currency" :value="$store.state.currency"
:current="current" :current="current"
:next="next" :next="next"
:disabled="$store.state.gameStopped"
@click="levelUp" @click="levelUp"
/> />
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="md:pt-4 pt-2 pb-16"> <div class="md:pt-4 pt-2 pb-20">
<div <div
class="energy-bar relative mx-auto rounded-full overflow-hidden border-2" class="energy-bar relative mx-auto rounded-full overflow-hidden border-2"
:class="`text-${$store.getters.activeTab.color} border-${$store.getters.activeTab.darkColor}`" :class="`text-${$store.getters.activeTab.color} border-${$store.getters.activeTab.darkColor}`"
@ -41,7 +41,7 @@
:max="process.travelCost" :max="process.travelCost"
:value="$store.state.energy" :value="$store.state.energy"
unit="energy" unit="energy"
:disabled="!isEnabled(process)" :disabled="$store.state.gameStopped || !isEnabled(process)"
@click="travelToEra(process)" @click="travelToEra(process)"
/> />
</responsive-grid> </responsive-grid>