Files
windmill/frontend/src/lib/components/flows/pickers/FlowScriptPicker.svelte
Ruben Fiszel 8f92a0c66f feat(frontend): flow UX overhaul II + go + python support for trigger scripts (#928)
* all

* improve all

* improve all

* fix frontend

* fix input picker nits

* fix(frontend): Fix Menu display

* all

* fix all

* fix all

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
2022-11-22 16:18:14 +01:00

31 lines
806 B
Svelte

<script lang="ts">
import type { SupportedLanguage } from '$lib/common'
import Button from '$lib/components/common/button/Button.svelte'
import LanguageIcon from '$lib/components/common/languageIcons/LanguageIcon.svelte'
import type { IconDefinition } from '@fortawesome/free-solid-svg-icons'
export let disabled: boolean = false
export let label: string
export let lang: SupportedLanguage | 'pgsql' | undefined = undefined
export let icon: IconDefinition | undefined = undefined
export let iconColor: string | undefined = undefined
</script>
<Button
{disabled}
btnClasses="truncate"
on:click
size="sm"
spacingSize="md"
variant="border"
color="light"
startIcon={{
icon,
classes: iconColor
}}
>
{#if lang}
<LanguageIcon {lang} />
{/if}<span class="ml-2">{label}</span>
</Button>