From 3ff2a392b64fe4695c90b9e48313e757a634c199 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 10 Jun 2019 22:18:24 +0200 Subject: [PATCH] Don't auto-clear incoming call notification Signed-off-by: Knut Ahlers --- src/app.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app.vue b/src/app.vue index b40f5b7..24bc900 100644 --- a/src/app.vue +++ b/src/app.vue @@ -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 })