dispatch an error message
This commit is contained in:
@@ -113,7 +113,8 @@ class Show extends Component
|
|||||||
->where('id', '!=', $this->server->id)
|
->where('id', '!=', $this->server->id)
|
||||||
->exists()) {
|
->exists()) {
|
||||||
$this->ip = $this->server->ip;
|
$this->ip = $this->server->ip;
|
||||||
throw new \Exception('This IP/Domain is already in use by another server in your team.');
|
|
||||||
|
return $this->dispatch('error', 'This IP/Domain is already in use by another server in your team.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->server->name = $this->name;
|
$this->server->name = $this->name;
|
||||||
|
|||||||
Reference in New Issue
Block a user