mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 09:54:44 +02:00
Update node record after updating (#929)
* refresh node model after updating * update record so form is correctly filled
This commit is contained in:
parent
3411e5e65c
commit
9e8b9cd599
@ -603,9 +603,12 @@ class EditNode extends EditRecord
|
||||
try {
|
||||
unset($data['unlimited_mem'], $data['unlimited_disk'], $data['unlimited_cpu']);
|
||||
|
||||
return $this->nodeUpdateService->handle($record, $data);
|
||||
$this->record = $this->nodeUpdateService->handle($record, $data);
|
||||
|
||||
return $this->record;
|
||||
} catch (Exception $exception) {
|
||||
$this->errored = true;
|
||||
|
||||
Notification::make()
|
||||
->title('Error connecting to the node')
|
||||
->body('The configuration could not be automatically updated on Wings, you will need to manually update the configuration file.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user