Added autoupdate to vodia switcher

This commit is contained in:
Frank Schubert
2025-06-24 13:00:38 +02:00
parent a0f5bbb176
commit f117793eac

View File

@@ -1,11 +1,13 @@
/* Vodia Outbound Identity */
var vodia_identity_switcher_timer;
var vodia_identity = null;
getVodiaIdentity();
async function getVodiaIdentity() {
clearTimeout(vodia_identity_switcher_timer);
if(!$("#vodia-identity-switcher .phone-icon").hasClass("fa-spin")) {
$("#vodia-identity-switcher .phone-icon").addClass("fa-spin text-warning");
}
@@ -104,6 +106,8 @@ async function getVodiaIdentity() {
$("#vodia-identity-switcher .phone-icon").addClass("fa-bounce");
setTimeout(() => { $("#vodia-identity-switcher .phone-icon").removeClass("fa-bounce"); }, 800);
vodia_identity_switcher_timer = setTimeout(() => {getVodiaIdentity()}, 30000); //
}
function addVodiaIdentityListItem(number, number_display, name, color) {