From e005b0fbd3c94989fc39c3ef89b2610c037b8875 Mon Sep 17 00:00:00 2001
From: tiennm99
Date: Tue, 18 Aug 2026 10:06:15 +0700
Subject: [PATCH] fix(ui): use Alpine state for clone-to-environment
destination uuid
Blade directives like @js() are not compiled inside component-tag
attributes, so the Clone resource button's @click expression reached
the browser as literal PHP and Alpine threw an expression error on
click, making the button do nothing. Use the currentDestinationUuid
Alpine variable already defined in the root x-data instead.
Closes #11340
---
.../livewire/project/shared/resource-operations.blade.php | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/resources/views/livewire/project/shared/resource-operations.blade.php b/resources/views/livewire/project/shared/resource-operations.blade.php
index 70ba5acfa..97e54a061 100644
--- a/resources/views/livewire/project/shared/resource-operations.blade.php
+++ b/resources/views/livewire/project/shared/resource-operations.blade.php
@@ -245,8 +245,7 @@
Uses {{ data_get($resource, 'destination.server.name') }} ยท
{{ data_get($resource, 'destination.network') }}.
- destination->uuid), selectedCloneEnvironment)">
+
Clone resource