diff --git a/fxmanifest.lua b/fxmanifest.lua index 1ab56a7d3..5961ff748 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -4,7 +4,7 @@ games { 'gta5' } author 'Tabarra' description 'Remotely Manage & Monitor your GTA5 FiveM Server' repository 'https://github.com/tabarra/txAdmin' -version '2.3.0' +version '2.3.1' server_script 'starter.js' diff --git a/version.json b/version.json index 14449d552..0c593d320 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { - "version": "2.3.0", - "changelog": "Deprecated Message. Please Update.", + "version": "2.3.1", + "changelog": "Deprecated Message. Please Update to v2.", "allVersions": [ { "version": "1.0.1", @@ -165,6 +165,10 @@ { "version": "2.3.0", "changelog": "Reworked the entire monitor/restarter module." + }, + { + "version": "2.3.1", + "changelog": "Fixed /status, fixed ping colors." } ] } diff --git a/web/public/js/common.js b/web/public/js/common.js index 4b47596f8..b295a18c6 100644 --- a/web/public/js/common.js +++ b/web/public/js/common.js @@ -78,8 +78,10 @@ function updatePlayer(player){ pingClass = 'danger'; } - el.classList.replace('list-group-item-accent-secondary', 'list-group-item-accent-' + pingClass); - el.firstElementChild.classList.replace('text-secondary', 'text-' + pingClass); + el.classList.remove('list-group-item-accent-secondary', 'list-group-item-accent-success', 'list-group-item-accent-warning', 'list-group-item-accent-danger'); + el.classList.add('list-group-item-accent-' + pingClass); + el.firstElementChild.classList.remove('text-secondary', 'text-success', 'text-warning', 'text-danger'); + el.firstElementChild.classList.add('text-' + pingClass); el.firstElementChild.innerHTML = player.ping.toString().padStart(3, 'x').replace(/x/g, ' '); el.lastElementChild.textContent = player.name; el.dataset['pname'] = player.name.toLowerCase();