Bug fixes for default flag and modal title

This commit is contained in:
Dean 2024-04-18 10:53:55 +01:00
parent 04d3226185
commit a0ccc09be9
1 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@
<SignatureModal
onConfirm={saveSignature}
title={fieldSchema?.name}
title={label || fieldSchema?.name || ""}
value={fieldState?.value}
{darkMode}
bind:this={modal}
@ -89,7 +89,7 @@
<Field
{label}
{field}
disabled={$builderStore.inBuilder || disabled}
{disabled}
{readonly}
{validation}
{span}
@ -104,7 +104,7 @@
{#if (Array.isArray(fieldState?.value) && !fieldState?.value?.length) || !fieldState?.value}
<ActionButton
fullWidth
{disabled}
disabled={fieldState.disabled}
on:click={() => {
if (!$builderStore.inBuilder) {
modal.show()
@ -117,7 +117,7 @@
<div class="signature-field">
<CoreSignature
{darkMode}
disabled={$builderStore.inBuilder || disabled}
disabled={$builderStore.inBuilder || fieldState.disabled}
editable={false}
value={fieldState?.value}
on:clear={deleteSignature}