Daemon now sends this info
This commit is contained in:
parent
7dd00d6d88
commit
ec969ecb01
|
@ -436,12 +436,6 @@ $(window).load(function () {
|
||||||
|
|
||||||
var can_run = true;
|
var can_run = true;
|
||||||
function updateServerPowerControls (data) {
|
function updateServerPowerControls (data) {
|
||||||
|
|
||||||
// Reset Console Data
|
|
||||||
if (data === 2) {
|
|
||||||
terminal.echo('\n[Daemon] -- + Server Detected as Booting + --\n');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Server is On or Starting
|
// Server is On or Starting
|
||||||
if(data == 1 || data == 2) {
|
if(data == 1 || data == 2) {
|
||||||
$('[data-attr="power"][data-action="start"]').addClass('disabled');
|
$('[data-attr="power"][data-action="start"]').addClass('disabled');
|
||||||
|
@ -456,7 +450,6 @@ $(window).load(function () {
|
||||||
} else {
|
} else {
|
||||||
$('[data-attr="power"][data-action="kill"]').addClass('disabled');
|
$('[data-attr="power"][data-action="kill"]').addClass('disabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('[data-attr="power"]').click(function (event) {
|
$('[data-attr="power"]').click(function (event) {
|
||||||
|
|
Loading…
Reference in New Issue