mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Daemon now sends this info
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user