mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 00:04:10 +00:00
hide refresh buttons do not apply to triggerables
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { twMerge } from 'tailwind-merge'
|
||||
import Required from './Required.svelte'
|
||||
import { addWhitespaceBeforeCapitals, capitalize } from '$lib/utils'
|
||||
import { capitalize } from '$lib/utils'
|
||||
|
||||
export let label: string
|
||||
export let format: string = ''
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<div class="inline-flex flex-row items-center truncated">
|
||||
<span class={twMerge('font-semibold', labelClass)}>
|
||||
{addWhitespaceBeforeCapitals(label.replace(/_/g, ' ')).split(' ').map(capitalize).join(' ')}
|
||||
{label.replace(/_/g, ' ').split(' ').map(capitalize).join(' ')}
|
||||
</span>
|
||||
<Required {required} class="!ml-0" />
|
||||
|
||||
|
||||
+6
-4
@@ -58,11 +58,13 @@
|
||||
: ''}
|
||||
{actions}
|
||||
/>
|
||||
<div class="flex items-center justify-between w-full px-2">
|
||||
<div class="flex flex-row items-center gap-2 text-xs"> Hide Refresh Button </div>
|
||||
{#if !isTriggerable(appComponent.type)}
|
||||
<div class="flex items-center justify-between w-full px-2">
|
||||
<div class="flex flex-row items-center gap-2 text-xs"> Hide Refresh Button </div>
|
||||
|
||||
<Toggle bind:checked={appInput.hideRefreshButton} size="xs" />
|
||||
</div>
|
||||
<Toggle bind:checked={appInput.hideRefreshButton} size="xs" />
|
||||
</div>
|
||||
{/if}
|
||||
{#if hasScript}
|
||||
<ScriptTransformer bind:appInput bind:appComponent />
|
||||
<ScriptRunConfiguration
|
||||
|
||||
Reference in New Issue
Block a user