Commit 820ebd02 authored by Kulya's avatar Kulya 😊

Показ звонков в QUEUE3 num

parent 3f6e4d9d
......@@ -985,7 +985,7 @@ function getQuesue() {
queueCallView(data, key) {
const view = $(`<div class="row align-items-center p-1 m-0 mt-1"
style="background: ${data.bgColor}">
${keyView(key)} ${phoneView(data.phone1)} ${timeView(data.duration)}
${keyView(key)} ${phoneView(data.phone1)} -> ${phoneView(data.phone2)} ${timeView(data.duration)}
</div>`)
function keyView(val="") {
......@@ -1003,6 +1003,12 @@ function getQuesue() {
return view
}
function phoneToView(phone="") {
if(!phone.length){ return "";}
const view = `<div class="col-4 p-0">${phone}</div>`
return view
}
function timeView(duration="") {
const view = `<div class="col-2 p-1 bg-light rounded d-flex justify-content-center ml-auto">${duration.substr(-5)}</div>`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment