refactor: Improve saving of custom internal name in Advanced.php

This commit is contained in:
Andras Bacsai 2024-08-15 12:13:39 +02:00
parent 4b744bc88a
commit c7a79514cc

View File

@ -96,6 +96,12 @@ public function saveCustomName()
} else {
$this->application->settings->custom_internal_name = null;
}
if (is_null($this->application->settings->custom_internal_name)) {
$this->application->settings->save();
$this->dispatch('success', 'Custom name saved.');
return;
}
$customInternalName = $this->application->settings->custom_internal_name;
$server = $this->application->destination->server;
$allApplications = $server->applications();