2024-06-04 17:38:13 +10:00
|
|
|
<script setup>
|
|
|
|
|
import { onMounted } from 'vue'
|
|
|
|
|
import { initDismisses } from 'flowbite'
|
|
|
|
|
import AlertWithContent from '@/components/alerts/AlertWithContent.vue'
|
|
|
|
|
|
|
|
|
|
const alerts = defineModel()
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
initDismisses()
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div
|
|
|
|
|
v-for="{ event, blockNumber, requestId, slotIdx, state, type } in alerts"
|
|
|
|
|
:key="event + blockNumber + requestId"
|
|
|
|
|
>
|
2024-06-12 17:46:19 +10:00
|
|
|
<AlertWithContent
|
|
|
|
|
:id="event + blockNumber + requestId"
|
|
|
|
|
:title="event"
|
|
|
|
|
:type="type"
|
|
|
|
|
:btn-more-url="`/request/${requestId}`"
|
2024-06-04 17:38:13 +10:00
|
|
|
><p>request {{ requestId }} at block {{ blockNumber }}</p>
|
|
|
|
|
<p v-if="slotIdx">Slot index: {{ slotIdx }}</p>
|
|
|
|
|
<p>State: {{ state }}</p></AlertWithContent
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|