hide refresh buttons do not apply to triggerables

This commit is contained in:
Ruben Fiszel
2023-05-10 10:33:32 +02:00
parent 35618f6bf0
commit 74b0480870
2 changed files with 8 additions and 6 deletions
@@ -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" />
@@ -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