ui(admin): fix node settings button
This commit is contained in:
parent
0313bdb1cb
commit
fffe3a7f8b
6 changed files with 202 additions and 199 deletions
|
@ -108,7 +108,7 @@ class NodeController extends ApplicationApiController
|
|||
$node = $this->updateService->handle(
|
||||
$node,
|
||||
$request->validated(),
|
||||
$request->input('reset_secret'),
|
||||
false,
|
||||
);
|
||||
|
||||
return $this->fractal->item($node)
|
||||
|
|
|
@ -17,20 +17,24 @@ class StoreNodeRequest extends ApplicationApiRequest
|
|||
public function rules(array $rules = null): array
|
||||
{
|
||||
return collect($rules ?? Node::getRules())->only([
|
||||
'public',
|
||||
'name',
|
||||
'location_id',
|
||||
'database_host_id',
|
||||
'fqdn',
|
||||
'listen_port_http',
|
||||
'listen_port_sftp',
|
||||
'public_port_http',
|
||||
'public_port_sftp',
|
||||
'scheme',
|
||||
'behind_proxy',
|
||||
'public',
|
||||
|
||||
'listen_port_http',
|
||||
'public_port_http',
|
||||
'listen_port_sftp',
|
||||
'public_port_sftp',
|
||||
|
||||
'memory',
|
||||
'memory_overallocate',
|
||||
'disk',
|
||||
'disk_overallocate',
|
||||
|
||||
'upload_size',
|
||||
'daemon_base',
|
||||
])->mapWithKeys(function ($value, $key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue