added notification about start-game in saper

This commit is contained in:
Kostya
2024-01-21 00:38:23 +03:00
parent 041f0c19e4
commit 6bbd7e0195
2 changed files with 17 additions and 2 deletions

View File

@@ -126,6 +126,9 @@
</div>
</section>
</div>
<div class="start-game" v-if="ValidationPlay.startGame === true">
<h2>Игра началась!</h2>
</div>
</template>
<script>
@@ -163,7 +166,8 @@ export default {
PercentageGameSteps: [],
ValidationPlay: {
CrystalValidate: false,
DiamondValidate: false
DiamondValidate: false,
startGame: false,
},
modules: [ Navigation ]
}
@@ -219,7 +223,10 @@ export default {
this.errorPlayButton()
}
else {
console.log('yes')
this.ValidationPlay.startGame = true
setTimeout(() => {
this.ValidationPlay.startGame = false
}, 1500)
}
},
validationCheck() {