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