mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 08:00:45 +00:00
b39f486c91
* feat(frontend): wip * wip * wip * wip * wip * add toggle * correctly handle monaco theme * wip * wip * wip * wip * wip * feat(frontend): Dark mode v0 * feat(frontend): Adap AI gen poppup * feat(frontend): Adap script metadata labels * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Fix ressource picker * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Add theme toggle in the login page * feat(frontend): Fix unreadable texts * feat(frontend): Fix language selection * feat(frontend): Fix FlowStatusViewer colors * feat(frontend): Fix divide colors * feat(frontend): Fix flow graph buttons * feat(frontend): add theme toggle in login modal * feat(frontend): small ui fix * feat(frontend): fix graph dark mode toggle
26 lines
494 B
Svelte
26 lines
494 B
Svelte
<script lang="ts">
|
|
import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import Icon from 'svelte-awesome'
|
|
|
|
export let text: string
|
|
|
|
export let viewOptions = false
|
|
</script>
|
|
|
|
<button
|
|
type="submit"
|
|
class="mr-6 text-sm underline text-secondary inline-flex items-center"
|
|
on:click={() => {
|
|
viewOptions = !viewOptions
|
|
}}
|
|
>
|
|
<div>
|
|
{text}
|
|
<Icon data={viewOptions ? faChevronUp : faChevronDown} scale={0.5} />
|
|
</div>
|
|
</button>
|
|
{#if viewOptions}
|
|
<slot />
|
|
{/if}
|