[mirotalksfu] - improve peerActionProgress...

هذا الالتزام موجود في:
Miroslav Pejic
2021-11-07 20:55:05 +01:00
الأصل 5894bd8871
التزام 9ba8626c6e

عرض الملف

@@ -2240,23 +2240,16 @@ class RoomClient {
}
peerActionProgress(tt, msg, time, action = 'na') {
let timerInterval;
Swal.fire({
allowOutsideClick: false,
background: swalBackground,
icon: 'success',
title: tt,
html: msg + ' <b style="color: green;"></b> milliseconds.',
text: msg,
timer: time,
timerProgressBar: true,
didOpen: () => {
Swal.showLoading();
const b = Swal.getHtmlContainer().querySelector('b');
timerInterval = setInterval(() => {
b.textContent = Swal.getTimerLeft();
}, 100);
},
willClose: () => {
clearInterval(timerInterval);
},
}).then(() => {
switch (action) {