mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
QOL changes for markup
This commit is contained in:
parent
f563ceb8ad
commit
10bf19bdf1
@ -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');
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user