mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 05:43:45 +02:00
Remove suspended & installing fields, replace with single status field
This commit is contained in:
@@ -228,12 +228,12 @@ class ServersController extends Controller
|
||||
*/
|
||||
public function toggleInstall(Server $server)
|
||||
{
|
||||
if ($server->installed > 1) {
|
||||
if ($server->status === Server::STATUS_INSTALL_FAILED) {
|
||||
throw new DisplayException(trans('admin/server.exceptions.marked_as_failed'));
|
||||
}
|
||||
|
||||
$this->repository->update($server->id, [
|
||||
'installed' => ! $server->installed,
|
||||
'status' => $server->isInstalled() ? Server::STATUS_INSTALLING : null,
|
||||
], true, true);
|
||||
|
||||
$this->alert->success(trans('admin/server.alerts.install_toggled'))->flash();
|
||||
|
||||
Reference in New Issue
Block a user