frontend: Display value of validated flags
This commit is contained in:
parent
6fd14306e1
commit
84a771a4a2
@ -124,9 +124,6 @@
|
||||
{#if !no_label}
|
||||
<label for="sol_{flag.type}{flag.id}_0">{flag.label} :</label>
|
||||
{/if}
|
||||
{#if flag.found && flag.value}
|
||||
<span>{flag.value}</span>
|
||||
{/if}
|
||||
{#if !flag.found && !$settings.hideCaseSensitivity && !flag.ignore_case}
|
||||
<Badge
|
||||
class="float-end"
|
||||
@ -235,6 +232,15 @@
|
||||
{#if flag.help}
|
||||
<small class="form-text text-muted">{@html flag.help}</small>
|
||||
{/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}
|
||||
<Icon
|
||||
name="check"
|
||||
|
Loading…
x
Reference in New Issue
Block a user