Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 27x 3x 1x 3x 13x 22x 22x | <template>
<UModal v-model:open="open" :title :description>
<template #footer>
<div class="flex w-full justify-end gap-2">
<UButton
:label="$t('workflowLeaveModal.stay')"
color="neutral"
variant="ghost"
@click="open = false"
/>
<UButton :label="action" color="error" @click="emit('leave')" />
</div>
</template>
</UModal>
</template>
<script setup lang="ts">
interface Props {
title: string;
description: string;
/** The label on the button that leaves anyway. */
action: string;
}
const { title, description, action } = defineProps<Props>();
const emit = defineEmits<{ leave: [] }>();
const open = defineModel<boolean>("open", { required: true });
</script>
|