1
0
mirror of https://github.com/Luzifer/browserphone.git synced 2024-09-18 22:52:57 +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
window.setTimeout(() => {
this.state = ''
}, 2000)
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
})