Add pack selection to view
This commit is contained in:
parent
9eb14614c2
commit
238f08f222
3 changed files with 22 additions and 4 deletions
|
@ -257,7 +257,7 @@ class ServersController extends Controller
|
|||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Contracts\View\View
|
||||
*/
|
||||
public function postNewServerServiceVariables(Request $request)
|
||||
public function postNewServerOptionDetails(Request $request)
|
||||
{
|
||||
|
||||
if(!$request->input('option')) {
|
||||
|
@ -274,6 +274,7 @@ class ServersController extends Controller
|
|||
->first();
|
||||
|
||||
return response()->json([
|
||||
'packs' => Models\ServicePack::select('uuid', 'name', 'version')->where('option', $request->input('option'))->where('selectable', true)->get(),
|
||||
'variables' => Models\ServiceVariables::where('option_id', $request->input('option'))->get(),
|
||||
'exec' => $option->executable,
|
||||
'startup' => $option->startup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue