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