mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-02 16:16:54 +00:00
* feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): deicision tree v0 * feat(frontend): deicision tree v0 * feat(frontend): fix build * feat(frontend): fix events * feat(frontend): add branch * feat(frontend): interactions done * feat(frontend): fix graph display * feat(frontend): fix rendering * feat(frontend): add end props * feat(frontend): working empty branches * feat(frontend): code cleanup * feat(frontend): code cleanup * feat(frontend): fix subgrids sync * feat(frontend): add missing events * feat(frontend): clean up comments * feat(frontend): fix inputValue key * feat(frontend): clean up comments * feat(frontend): compute first node * feat(frontend): fix layout * feat(frontend): fix actions * feat(frontend): remove console.log * feat(frontend): fix styling + add debug mode + use label in output panel * feat(frontend): fix styling * feat(frontend): fix styling * feat(frontend): done * feat(frontend): done * feat(frontend): done * feat(frontend): fix add * feat(frontend): fix delete * feat(frontend): minor fix * feat(frontend): fix preivous buttons * feat(frontend): Fix the eval preview * feat(frontend): Remove log * feat(frontend): fix wording * feat(frontend): select the tab in the app editor when selecting the node
34 lines
897 B
Svelte
34 lines
897 B
Svelte
<script lang="ts">
|
|
import { enterpriseLicense } from '$lib/stores'
|
|
import { AlertTriangle } from 'lucide-svelte'
|
|
import Tooltip from './Tooltip.svelte'
|
|
|
|
export let label: string | undefined = undefined
|
|
export let tooltip: string | undefined = undefined
|
|
export let eeOnly = false
|
|
</script>
|
|
|
|
<div class="w-full">
|
|
<div class="flex flex-row justify-between items-center mb-2">
|
|
<h2 class="text-base font-semibold flex flex-row gap-1">
|
|
{label}
|
|
<slot name="header" />
|
|
{#if tooltip}
|
|
<Tooltip>{tooltip}</Tooltip>
|
|
{/if}
|
|
{#if eeOnly}
|
|
{#if !$enterpriseLicense}
|
|
<div class="flex text-xs items-center gap-1 text-yellow-500 whitespace-nowrap ml-8">
|
|
<AlertTriangle size={16} />
|
|
EE only <Tooltip>Enterprise Edition only feature</Tooltip>
|
|
</div>
|
|
{/if}
|
|
{/if}
|
|
</h2>
|
|
<slot name="action" />
|
|
</div>
|
|
<div class={$$props.class}>
|
|
<slot />
|
|
</div>
|
|
</div>
|