From dbc55233cba72eada244586be1ec12aecbc50a63 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 11 Dec 2023 13:02:29 +0100 Subject: [PATCH] fix: add new destination --- app/Livewire/Project/New/Select.php | 3 --- resources/views/livewire/destination/show.blade.php | 6 +++--- resources/views/livewire/project/new/select.blade.php | 9 +++++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/Livewire/Project/New/Select.php b/app/Livewire/Project/New/Select.php index ed55553df..856a9b9a9 100644 --- a/app/Livewire/Project/New/Select.php +++ b/app/Livewire/Project/New/Select.php @@ -109,9 +109,6 @@ class Select extends Component if (count($this->servers) === 1) { $server = $this->servers->first(); $this->setServer($server); - if (count($server->destinations()) === 1) { - $this->setDestination($server->destinations()->first()->uuid); - } } if (!is_null($this->server)) { $foundServer = $this->servers->where('id', $this->server)->first(); diff --git a/resources/views/livewire/destination/show.blade.php b/resources/views/livewire/destination/show.blade.php index a1766ec76..5bc0b595a 100644 --- a/resources/views/livewire/destination/show.blade.php +++ b/resources/views/livewire/destination/show.blade.php @@ -2,7 +2,7 @@ @if ($server->isFunctional())

Destinations

- + Add a new destination Scan destinations on the server @@ -11,7 +11,7 @@