UI: Agregar boton 'Copiar todos' al receptor de webhooks
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m5s

This commit is contained in:
2025-12-02 21:40:48 -06:00
parent cc87bde154
commit 3b0fb57ce4

View File

@@ -59,6 +59,14 @@
<UIcon name="i-lucide-refresh-cw" class="w-4 h-4 mr-2" />
Actualizar
</UButton>
<UButton
variant="soft"
:disabled="events.length === 0"
@click="copyAllEvents"
>
<UIcon name="i-lucide-copy" class="w-4 h-4 mr-2" />
Copiar todos
</UButton>
<UButton
variant="soft"
color="error"
@@ -240,6 +248,11 @@ const clearEvents = async () => {
}
}
const copyAllEvents = () => {
const allEventsJson = JSON.stringify(events.value, null, 2)
copyToClipboard(allEventsJson)
}
const toggleExpand = (id: string) => {
if (expandedEvents.value.has(id)) {
expandedEvents.value.delete(id)