From 88ba00db2bcf0fdef48a05d46f76d078f625c981 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 6 Oct 2026 06:59:22 +0200 Subject: [PATCH] fix(ui): pass values to Alpine correctly in component attributes Blade does not compile @js() inside component tag attributes, so Alpine got the literal text and threw an expression error. - The environment variable editor closes again after an update - The change email button in the profile gets a valid disabled state --- resources/views/livewire/profile/index.blade.php | 2 +- .../livewire/project/shared/environment-variable/show.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/profile/index.blade.php b/resources/views/livewire/profile/index.blade.php index c92c3d970e..1c77a2d70e 100644 --- a/resources/views/livewire/profile/index.blade.php +++ b/resources/views/livewire/profile/index.blade.php @@ -134,7 +134,7 @@
+ :disabled="$uses_sso" x-bind:disabled="emailModalOpen || {{ $uses_sso ? 'true' : 'false' }}"> Change
diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.php index a79c5e5d69..d53719aca0 100644 --- a/resources/views/livewire/project/shared/environment-variable/show.blade.php +++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php @@ -90,7 +90,7 @@ {{-- Open modal immediately (Alpine); decrypt value in a follow-up Livewire request. --}} + @environment-variable-updated.window="if ($event.detail.envId === {{ (int) $env->id }}) modalOpen = false">