mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 08:07:03 +00:00
tooltip for why python not supported for trigger scripts
This commit is contained in:
@@ -248,9 +248,9 @@
|
||||
>{(extra_params ?? []).length} item{(extra_params ?? []).length > 1 ? 's' : ''}</span
|
||||
>
|
||||
{:else}
|
||||
<p class="italic text-sm">Pick an OAuth app and customize the scopes here</p>
|
||||
<p class="italic text-sm">Pick an OAuth app and customize the extra parameters here</p>
|
||||
{/if}
|
||||
<PageHeader title="API token apps" />
|
||||
<PageHeader title="Non OAuth apps" />
|
||||
<div class="grid sm:grid-cols-2 md:grid-cols-3 gap-x-2 gap-y-1 items-center mb-2">
|
||||
{#each connectsManual as [key, instructions]}
|
||||
<button
|
||||
|
||||
@@ -21,11 +21,15 @@
|
||||
iconColor="text-blue-800"
|
||||
on:click={() => dispatch('new', { language: RawScript.language.DENO })}
|
||||
/>
|
||||
|
||||
<FlowScriptPicker
|
||||
disabled={isTrigger}
|
||||
label="New Python {isTrigger ? 'trigger ' : ''}script (3.10)"
|
||||
icon={faCode}
|
||||
iconColor="text-yellow-500"
|
||||
on:click={() => dispatch('new', { language: RawScript.language.PYTHON3 })}
|
||||
tooltip={isTrigger
|
||||
? 'Python is not supported for trigger scripts yet but is supported for every other steps'
|
||||
: undefined}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
<script lang="ts">
|
||||
import type { IconDefinition } from '@fortawesome/free-brands-svg-icons'
|
||||
import { Tooltip } from 'flowbite-svelte'
|
||||
import Icon from 'svelte-awesome'
|
||||
|
||||
export let disabled: boolean = false
|
||||
export let icon: IconDefinition
|
||||
export let label: string
|
||||
export let iconColor: string
|
||||
export let tooltip: string | undefined = undefined
|
||||
</script>
|
||||
|
||||
<button {disabled} type="button" on:click class="default-secondary-button-v2 mb-2 w-full">
|
||||
<Icon data={icon} class={`w-4 h-4 mr-2 -ml-2 ${iconColor}`} />
|
||||
{label}
|
||||
{#if tooltip}
|
||||
<Tooltip placement="bottom" content={tooltip}>(?)</Tooltip>
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user