1
0
Fork 0
mirror of https://github.com/Luzifer/browserphone.git synced 2024-11-09 14:20:04 +00:00

Don't auto-clear incoming call notification

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-06-10 22:18:24 +02:00
parent aea4a28afc
commit 3ff2a392b6
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -80,11 +80,14 @@ export default {
},
methods: {
announceStatus(state) {
announceStatus(state, autoClear = true) {
this.state = state
if (autoClear) {
window.setTimeout(() => {
this.state = ''
}, 2000)
}
},
keyDown(key) {
@ -114,7 +117,7 @@ export default {
this.announceStatus('Call disconnected')
})
this.phone.device.on('incoming', conn => {
this.announceStatus(`Incoming call from ${conn.parameters.From}`)
this.announceStatus(`Incoming call from ${conn.parameters.From}...`, false)
this.phone.conn = conn
this.ringing = true
})