mirror of
https://github.com/lukaszraczylo/ghtracker.git
synced 2026-10-14 00:58:36 +00:00
Alerts that match a configured action get a button labelled from the config. A confirm dialog opens first when the action defines confirm text. After a press the UI posts the alert, reloads the state through the existing poll path and shows the reported status as a chip, with an anchor when the status carries a link. The alert dialog comes from reka-ui through the usual shadcn-vue wrappers.
16 lines
434 B
Vue
16 lines
434 B
Vue
<script setup lang="ts">
|
|
import type { AlertDialogEmits, AlertDialogProps } from 'reka-ui'
|
|
import { AlertDialogRoot, useForwardPropsEmits } from 'reka-ui'
|
|
|
|
const props = defineProps<AlertDialogProps>()
|
|
const emits = defineEmits<AlertDialogEmits>()
|
|
|
|
const forwarded = useForwardPropsEmits(props, emits)
|
|
</script>
|
|
|
|
<template>
|
|
<AlertDialogRoot data-slot="alert-dialog" v-bind="forwarded">
|
|
<slot />
|
|
</AlertDialogRoot>
|
|
</template>
|