Skip to content

Commit abac9b5

Browse files
committed
Prevent clicking server start button until server is completely off
1 parent b1de054 commit abac9b5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
99
* Support for creating server without having to assign a node and allocation manually. Simply select the checkbox or pass `auto_deploy=true` to the API to auto-select a node and allocation given a location.
1010

1111
### Changed
12+
* Prevent clicking server start button until server is completely off, not just stopping.
13+
1214
### Fixed
1315
* Team Fortress named 'Insurgency' in panel in database seeder. ([#96](https://github.com/Pterodactyl/Panel/issues/96), PR by [@MeltedLux](https://github.com/MeltedLux))
1416
* Server allocation listing display now showing the connection IP unless an alias was assigned.

resources/views/server/index.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ function updateServerPowerControls (data) {
442442
$('[data-attr="power"][data-action="start"]').addClass('disabled');
443443
$('[data-attr="power"][data-action="stop"], [data-attr="power"][data-action="restart"]').removeClass('disabled');
444444
} else {
445-
$('[data-attr="power"][data-action="start"]').removeClass('disabled');
445+
if (data == 0) {
446+
$('[data-attr="power"][data-action="start"]').removeClass('disabled');
447+
}
446448
$('[data-attr="power"][data-action="stop"], [data-attr="power"][data-action="restart"]').addClass('disabled');
447449
}
448450

0 commit comments

Comments
 (0)