Prevent clicking server start button until server is completely off

This commit is contained in:
Dane Everitt 2016-09-28 19:16:10 -04:00
parent b1de054a9d
commit abac9b506b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 5 additions and 1 deletions

View file

@ -9,6 +9,8 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* 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.
### Changed
* Prevent clicking server start button until server is completely off, not just stopping.
### Fixed
* Team Fortress named 'Insurgency' in panel in database seeder. ([#96](https://github.com/Pterodactyl/Panel/issues/96), PR by [@MeltedLux](https://github.com/MeltedLux))
* Server allocation listing display now showing the connection IP unless an alias was assigned.

View file

@ -442,7 +442,9 @@ $(window).load(function () {
$('[data-attr="power"][data-action="start"]').addClass('disabled');
$('[data-attr="power"][data-action="stop"], [data-attr="power"][data-action="restart"]').removeClass('disabled');
} else {
$('[data-attr="power"][data-action="start"]').removeClass('disabled');
if (data == 0) {
$('[data-attr="power"][data-action="start"]').removeClass('disabled');
}
$('[data-attr="power"][data-action="stop"], [data-attr="power"][data-action="restart"]').addClass('disabled');
}