fix: warning if you use multiple domains for a service
This commit is contained in:
		@@ -59,7 +59,11 @@ class ServiceApplicationView extends Component
 | 
				
			|||||||
            $this->validate();
 | 
					            $this->validate();
 | 
				
			||||||
            $this->application->save();
 | 
					            $this->application->save();
 | 
				
			||||||
            updateCompose($this->application);
 | 
					            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) {
 | 
					        } catch (\Throwable $e) {
 | 
				
			||||||
            return handleError($e, $this);
 | 
					            return handleError($e, $this);
 | 
				
			||||||
        } finally {
 | 
					        } finally {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user