UI: Agregar boton 'Copiar todos' al receptor de webhooks
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m5s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m5s
This commit is contained in:
@@ -59,6 +59,14 @@
|
|||||||
<UIcon name="i-lucide-refresh-cw" class="w-4 h-4 mr-2" />
|
<UIcon name="i-lucide-refresh-cw" class="w-4 h-4 mr-2" />
|
||||||
Actualizar
|
Actualizar
|
||||||
</UButton>
|
</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
|
<UButton
|
||||||
variant="soft"
|
variant="soft"
|
||||||
color="error"
|
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) => {
|
const toggleExpand = (id: string) => {
|
||||||
if (expandedEvents.value.has(id)) {
|
if (expandedEvents.value.has(id)) {
|
||||||
expandedEvents.value.delete(id)
|
expandedEvents.value.delete(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user