Files
windmill/frontend/src/lib/components/FlowPlugConnect.svelte
Guilhem ceaf56c21e feat(frontend): nodes from flow can be connected directly in expr input through a plug icon (#4652)
* Add flow prop picker

* fix unwanted copy

* cleaning

* Fix unset context

* move button and always display input

* fix unwanted proppicker display

* update

* update

* clean all

* clean all

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-11-07 15:53:37 +01:00

20 lines
495 B
Svelte

<script lang="ts">
import { Plug } from 'lucide-svelte'
import { Button } from './common'
import AnimatedButton from './common/button/AnimatedButton.svelte'
export let connecting: boolean
</script>
<AnimatedButton animate={connecting} baseRadius="6px" animationDuration="2s" marginWidth="2px">
<Button
variant="border"
color="light"
size="xs2"
btnClasses={connecting ? 'text-blue-500' : 'text-primary'}
on:click
>
<Plug size={16} /> &rightarrow;
</Button>
</AnimatedButton>