fix(postgresql): persist selected public access state

This commit is contained in:
Andras Bacsai
2026-08-18 09:42:22 +02:00
parent 69dbfe0079
commit 8ecf77eadb
3 changed files with 19 additions and 2 deletions
@@ -209,11 +209,15 @@ class General extends Component
}
}
public function instantSave()
public function instantSave(?bool $isPublic = null)
{
try {
$this->authorize('update', $this->database);
if ($isPublic !== null) {
$this->isPublic = $isPublic;
}
if ($this->isPublic && ! $this->publicPort) {
$this->dispatch('error', 'Public port is required.');
$this->isPublic = false;