delete notification-component in crash

This commit is contained in:
Kostya
2024-02-08 16:46:17 +03:00
parent ee407dee0c
commit a2e268f262

View File

@@ -80,9 +80,6 @@
</div> </div>
</section> </section>
</div> </div>
<div class="notification-crash" v-if="notificationShow">
<h2>{{ notificationText }}</h2>
</div>
</div> </div>
</template> </template>
@@ -111,12 +108,10 @@ export default {
clickedBtn: null, clickedBtn: null,
ErrorClick: false, ErrorClick: false,
ErrorJoin: false, ErrorJoin: false,
notificationShow: false,
balance: 0, balance: 0,
amountDeposit: 0, amountDeposit: 0,
crashObject: '', crashObject: '',
textError: '', textError: '',
notificationText: '',
startGame: false, startGame: false,
} }
}, },
@@ -267,15 +262,7 @@ export default {
return return
} }
else if (response === 'Success') {
this.notificationText = 'Успешное добавление в очередь'
this.notificationShow = true
setTimeout(() => {
this.notificationText = ''
this.notificationShow = false
}, 1000)
}
this.startGame = true this.startGame = true
}) })
} }
@@ -299,16 +286,6 @@ export default {
console.log(response) console.log(response)
this.startGame = false this.startGame = false
if (response.startsWith('Win')) {
this.notificationText = 'Деньги успешно зачислены. Игра покинута.'
this.notificationShow = true
setTimeout(() => {
this.notificationText = ''
this.notificationShow = false
}, 1500)
}
this.updateUserMoney() this.updateUserMoney()
}) })
} }