added chime on bot message

This commit is contained in:
AndzejsP 2023-05-06 14:32:24 +03:00
parent 531a4ab3dc
commit 3de612e7f0
2 changed files with 5 additions and 0 deletions

BIN
web/public/chime_aud.wav Normal file

Binary file not shown.

View File

@ -141,6 +141,7 @@ export default {
isCheckbox: false,
isSelectAll: false,
showConfirmation: false,
chime: new Audio("chime_aud.wav")
}
},
@ -320,6 +321,7 @@ export default {
nextTick(() => {
const responseMessageElement = document.getElementById('msg-' + msgObj.response_id)
this.scrollToElement(responseMessageElement)
this.chime.play()
})
if (this.currentDiscussion.title === '' || this.currentDiscussion.title === null) {
@ -489,6 +491,9 @@ export default {
},
async created() {
// Constructor
//const chime = require('../assets/chime_aud.wav')
this.setPageTitle()
await this.list_discussions()