fix(destinations): handle empty and server-scoped destinations

Build the global destinations list from actual destination records so empty
servers do not render duplicate empty states. Allow creating Docker destinations
for a selected team server outside the global usable list, authorize swarm
creation correctly, and store discovered swarm network names from the selected
network. Add feature coverage for empty states, selected-server mounting, and
swarm destination creation.
This commit is contained in:
Andras Bacsai committed 2026-05-19 12:50:08 +02:00
1 parent a67cc1d3a9
commit 65c0c92c02
6 files changed
+159 -41

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ class Destinations extends Component
} else {
SwarmDocker::create([
'name' => $this->server->name.'-'.$name,
'network' => $this->name,
'network' => $name,
'server_id' => $this->server->id,
]);
}