Fix server deletion logic, and clean up suspend/unsuspend operations

This commit is contained in:
Dane Everitt
2017-04-17 20:16:05 -04:00
parent bdfab16af3
commit de923bbb83
5 changed files with 56 additions and 81 deletions

View File

@@ -367,7 +367,7 @@ class ServersController extends Controller
}
try {
$repo->$action($id);
$repo->toggleAccess($id, ($action === 'unsuspend'));
Alert::success('Server has been ' . $action . 'ed.');
} catch (TransferException $ex) {