frontend: Display value of validated flags

This commit is contained in:
nemunaire 2023-11-05 12:05:04 +01:00
parent 6fd14306e1
commit 84a771a4a2

View File

@ -124,9 +124,6 @@
{#if !no_label} {#if !no_label}
<label for="sol_{flag.type}{flag.id}_0">{flag.label}&nbsp;:</label> <label for="sol_{flag.type}{flag.id}_0">{flag.label}&nbsp;:</label>
{/if} {/if}
{#if flag.found && flag.value}
<span>{flag.value}</span>
{/if}
{#if !flag.found && !$settings.hideCaseSensitivity && !flag.ignore_case} {#if !flag.found && !$settings.hideCaseSensitivity && !flag.ignore_case}
<Badge <Badge
class="float-end" class="float-end"
@ -235,6 +232,15 @@
{#if flag.help} {#if flag.help}
<small class="form-text text-muted">{@html flag.help}</small> <small class="form-text text-muted">{@html flag.help}</small>
{/if} {/if}
{:else if value}
<input
class="form-control is-valid"
disabled
id="sol_{flag.type}{flag.id}_0"
type="text"
title="Flag trouvé à {flag.found}"
value={value}
>
{:else} {:else}
<Icon <Icon
name="check" name="check"