Files
windmill/frontend/src/lib/components/copilot/FlowCopilotInputsModal.svelte
T
HugoCasa 6a809bdca0 feat: improve ai flow (#2270)
* feat: improve ai flow

* fix: copilot status popup placement

* fix: step only approve flow inputs additions + nits

* fix: nits
2023-09-13 14:24:27 +02:00

40 lines
768 B
Svelte

<script lang="ts">
import { createEventDispatcher } from 'svelte'
import { Button, Badge } from '../common'
import Modal from '../common/modal/Modal.svelte'
export let open = false
export let inputs: string[] = []
const dispatch = createEventDispatcher()
</script>
<Modal
{open}
on:confirmed={() => {
open = false
dispatch('confirmed')
}}
on:canceled
title="Windmill AI wants to add the following inputs to the flow:"
>
<ul class="text-lg list-disc pl-5">
{#each inputs as input}
<li>{input}</li>
{/each}
</ul>
<Button
slot="actions"
on:click={() => {
open = false
dispatch('confirmed')
}}
color="light"
size="sm"
>
<span class="inline-flex gap-2">Add <Badge color="dark-green">Enter</Badge></span>
</Button>
</Modal>