updating config-file xml's; prepare config-details view via ajax for config-commands/files to show in configuration
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -116,6 +116,8 @@ class Ajax
|
||||
return $this->resetTablelisting();
|
||||
case 'editapikey':
|
||||
return $this->editApiKey();
|
||||
case 'getConfigDetails':
|
||||
return $this->getConfigDetails();
|
||||
default:
|
||||
return $this->errorResponse('Action not found!');
|
||||
}
|
||||
@@ -317,4 +319,15 @@ class Ajax
|
||||
));
|
||||
return $this->jsonResponse(['allowed_from' => $allowed_from, 'valid_until' => $valid_until]);
|
||||
}
|
||||
|
||||
private function getConfigDetails()
|
||||
{
|
||||
$distro = isset($_POST['distro,']) ? $_POST['distro,'] : "";
|
||||
$section = isset($_POST['section']) ? $_POST['section'] : "";
|
||||
$daemon = isset($_POST['daemon']) ? $_POST['daemon'] : "";
|
||||
|
||||
// @todo
|
||||
|
||||
return $this->jsonResponse(['title' => 'TODO', 'content' => '<div class="alert alert-warning" role="alert">TODO</div>']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user