From c8bc80f4480fa4eea40770c166478419cc1d8e9f Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 30 May 2025 09:11:54 +0200 Subject: [PATCH] refactor(environment-variables): simplify application build pack check in environment variable handling --- app/Models/EnvironmentVariable.php | 2 +- .../livewire/project/shared/environment-variable/all.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/EnvironmentVariable.php b/app/Models/EnvironmentVariable.php index 5f686de60..04081fce0 100644 --- a/app/Models/EnvironmentVariable.php +++ b/app/Models/EnvironmentVariable.php @@ -57,7 +57,7 @@ class EnvironmentVariable extends BaseModel if (! $found) { $application = Application::find($environment_variable->resourceable_id); - if ($application && $application->build_pack !== 'dockerfile') { + if ($application) { ModelsEnvironmentVariable::create([ 'key' => $environment_variable->key, 'value' => $environment_variable->value, diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.php index a5f0fae90..a71f88637 100644 --- a/resources/views/livewire/project/shared/environment-variable/all.blade.php +++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php @@ -11,7 +11,7 @@ wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}