fix: warning if you use multiple domains for a service

This commit is contained in:
Andras Bacsai 2024-04-02 15:15:43 +02:00
parent 0f4eab3cf2
commit db5d7857c8

View File

@ -59,7 +59,11 @@ public function submit()
$this->validate();
$this->application->save();
updateCompose($this->application);
$this->dispatch('success', 'Service saved.');
if (str($this->application->fqdn)->contains(',')) {
$this->dispatch('warning', 'Some services do not support multiple domains, which can lead to problems and is NOT RECOMMENDED.');
} else {
$this->dispatch('success', 'Service saved.');
}
} catch (\Throwable $e) {
return handleError($e, $this);
} finally {