QOL changes for markup

This commit is contained in:
Andrew 2022-02-27 23:02:07 -05:00
parent f563ceb8ad
commit 10bf19bdf1
2 changed files with 2 additions and 8 deletions

View File

@ -136,15 +136,8 @@
/* TODO Update each element */ /* TODO Update each element */
if (server.running){ if (server.running){
if (server['stats']['waiting_start']){
server_status.setAttribute("class", "text-warning");
server_status.innerHTML = `{{ translate('serverStats', 'starting', data['lang']) }}`;
}
else
{
server_status.setAttribute("class", "text-success"); server_status.setAttribute("class", "text-success");
server_status.innerHTML = `{{ translate('serverStats', 'online', data['lang']) }}`; server_status.innerHTML = `{{ translate('serverStats', 'online', data['lang']) }}`;
}
startedUTC = server.started; startedUTC = server.started;
startedUTC = moment.utc(startedUTC, 'YYYY-MM-DD HH:mm:ss'); startedUTC = moment.utc(startedUTC, 'YYYY-MM-DD HH:mm:ss');

View File

@ -327,7 +327,8 @@ const server_id = new URLSearchParams(document.location.search).get('id')
label: '<i class="fas fa-times"></i> {{ translate("serverBackups", "cancel", data['lang']) }}' label: '<i class="fas fa-times"></i> {{ translate("serverBackups", "cancel", data['lang']) }}'
}, },
confirm: { confirm: {
label: '<i class="fas fa-check"></i> {{ translate("serverBackups", "restore", data['lang']) }}' label: '<i class="fas fa-check"></i> {{ translate("serverBackups", "restore", data['lang']) }}',
className: 'btn-outline-danger'
} }
}, },
callback: function (result) { callback: function (result) {