From f124a1e60dba70da10c7c9f9e3dd1ff59bfa55be Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 16 Sep 2024 10:56:11 +0200 Subject: [PATCH] chore: Update terminal button text and layout in application heading view --- .../Project/Shared/ExecuteContainerCommand.php | 3 +++ .../livewire/project/application/heading.blade.php | 6 +++--- .../livewire/project/database/heading.blade.php | 13 +++++++------ .../shared/execute-container-command.blade.php | 14 +++++--------- routes/web.php | 6 +++--- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/app/Livewire/Project/Shared/ExecuteContainerCommand.php b/app/Livewire/Project/Shared/ExecuteContainerCommand.php index b560595b3..bf34fec79 100644 --- a/app/Livewire/Project/Shared/ExecuteContainerCommand.php +++ b/app/Livewire/Project/Shared/ExecuteContainerCommand.php @@ -107,6 +107,9 @@ class ExecuteContainerCommand extends Component } elseif (data_get($this->parameters, 'service_uuid')) { $this->container = $this->containers->first(); } + if ($this->containers->count() === 1) { + $this->dispatch('connectToContainer'); + } } } diff --git a/resources/views/livewire/project/application/heading.blade.php b/resources/views/livewire/project/application/heading.blade.php index 2704cc1f4..c1ea8ed56 100644 --- a/resources/views/livewire/project/application/heading.blade.php +++ b/resources/views/livewire/project/application/heading.blade.php @@ -1,7 +1,7 @@