fix: sentry
This commit is contained in:
parent
6103a8590d
commit
37e37d1998
@ -15,10 +15,10 @@ class Select extends Component
|
|||||||
public string $type;
|
public string $type;
|
||||||
public string $server_id;
|
public string $server_id;
|
||||||
public string $destination_uuid;
|
public string $destination_uuid;
|
||||||
public Countable|array|Server $allServers = [];
|
public Collection|null|Server $allServers;
|
||||||
public Countable|array|Server $servers = [];
|
public Collection|null|Server $servers;
|
||||||
public Collection|array $standaloneDockers = [];
|
public ?Collection $standaloneDockers;
|
||||||
public Collection|array $swarmDockers = [];
|
public ?Collection $swarmDockers;
|
||||||
public array $parameters;
|
public array $parameters;
|
||||||
public Collection|array $services = [];
|
public Collection|array $services = [];
|
||||||
public Collection|array $allServices = [];
|
public Collection|array $allServices = [];
|
||||||
@ -107,7 +107,11 @@ class Select extends Component
|
|||||||
if ($this->includeSwarm) {
|
if ($this->includeSwarm) {
|
||||||
$this->servers = $this->allServers;
|
$this->servers = $this->allServers;
|
||||||
} else {
|
} else {
|
||||||
$this->servers = $this->allServers->where('settings.is_swarm_worker', false)->where('settings.is_swarm_manager', false)->where('settings.is_build_server', false);
|
if ($this->allServers instanceof Collection) {
|
||||||
|
$this->servers = $this->allServers->where('settings.is_swarm_worker', false)->where('settings.is_swarm_manager', false)->where('settings.is_build_server', false);
|
||||||
|
} else {
|
||||||
|
$this->servers = $this->allServers;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function setType(string $type)
|
public function setType(string $type)
|
||||||
@ -126,13 +130,21 @@ class Select extends Component
|
|||||||
case 'mongodb':
|
case 'mongodb':
|
||||||
$this->isDatabase = true;
|
$this->isDatabase = true;
|
||||||
$this->includeSwarm = false;
|
$this->includeSwarm = false;
|
||||||
$this->servers = $this->allServers->where('settings.is_swarm_worker', false)->where('settings.is_swarm_manager', false)->where('settings.is_build_server', false);
|
if ($this->allServers instanceof Collection) {
|
||||||
|
$this->servers = $this->allServers->where('settings.is_swarm_worker', false)->where('settings.is_swarm_manager', false)->where('settings.is_build_server', false);
|
||||||
|
} else {
|
||||||
|
$this->servers = $this->allServers;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (str($type)->startsWith('one-click-service') || str($type)->startsWith('docker-compose-empty')) {
|
if (str($type)->startsWith('one-click-service') || str($type)->startsWith('docker-compose-empty')) {
|
||||||
$this->isDatabase = true;
|
$this->isDatabase = true;
|
||||||
$this->includeSwarm = false;
|
$this->includeSwarm = false;
|
||||||
$this->servers = $this->allServers->where('settings.is_swarm_worker', false)->where('settings.is_swarm_manager', false)->where('settings.is_build_server', false);
|
if ($this->allServers instanceof Collection) {
|
||||||
|
$this->servers = $this->allServers->where('settings.is_swarm_worker', false)->where('settings.is_swarm_manager', false)->where('settings.is_build_server', false);
|
||||||
|
} else {
|
||||||
|
$this->servers = $this->allServers;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($type === "existing-postgresql") {
|
if ($type === "existing-postgresql") {
|
||||||
$this->current_step = $type;
|
$this->current_step = $type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user