fix(loyalty): fix edit/delete button handlers in pins list
Template called openEditPin() and confirmDeletePin() but JS methods are openEditModal() and openDeleteModal(). Buttons were silently failing on click. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -102,11 +102,11 @@
|
|||||||
<td class="px-4 py-3">
|
<td class="px-4 py-3">
|
||||||
{% if show_crud %}
|
{% if show_crud %}
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<button @click="openEditPin(pin)"
|
<button @click="openEditModal(pin)"
|
||||||
class="text-purple-600 hover:text-purple-700 dark:text-purple-400 text-sm">
|
class="text-purple-600 hover:text-purple-700 dark:text-purple-400 text-sm">
|
||||||
<span x-html="$icon('pencil', 'w-4 h-4')"></span>
|
<span x-html="$icon('pencil', 'w-4 h-4')"></span>
|
||||||
</button>
|
</button>
|
||||||
<button @click="confirmDeletePin(pin)"
|
<button @click="openDeleteModal(pin)"
|
||||||
class="text-red-600 hover:text-red-700 dark:text-red-400 text-sm">
|
class="text-red-600 hover:text-red-700 dark:text-red-400 text-sm">
|
||||||
<span x-html="$icon('trash', 'w-4 h-4')"></span>
|
<span x-html="$icon('trash', 'w-4 h-4')"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user