mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
все добавил но звук не работае как и кнопка мута чата , история платежей тоже говно работет
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
</ul>
|
||||
</div>
|
||||
<writechat-component @send="ClaimDatamsg"></writechat-component>
|
||||
<div class="chat__mute-button">
|
||||
<button @click="muteChat">Mute</button>
|
||||
</div>
|
||||
</aside>
|
||||
</template>
|
||||
|
||||
@@ -72,6 +75,10 @@ export default {
|
||||
alert("Вы не можете отправлять сообщения чаще, чем раз в 2 секунды.");
|
||||
}
|
||||
},
|
||||
muteChat() {
|
||||
// Mute the chat by disabling the event listener for incoming messages.
|
||||
this.eventBus.$off("dataChat");
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
eventBus.on("dataChat", (dataFromServer) => {
|
||||
@@ -128,4 +135,5 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user