fix(ui): correctly display selected image model (#8208)

Signed-off-by: Dedy F. Setyawan <dedyfajars@gmail.com>
This commit is contained in:
Dedy F. Setyawan
2026-01-25 20:54:40 +07:00
committed by GitHub
parent 26a374b717
commit d499071bff

View File

@@ -18,7 +18,7 @@
<div class="flex items-center justify-between gap-2">
<label class="text-xs font-medium text-[var(--color-text-secondary)] uppercase tracking-wide flex-shrink-0">Model</label>
</div>
<select x-data="{ link : '' }" x-model="link" x-init="$watch('link', value => window.location = link)"
<select x-data="{ link : '{{if .Model}}image/{{.Model}}{{end}}' }" x-model="link" x-init="$watch('link', value => window.location = link)"
id="model-select"
class="input w-full p-1.5 text-xs"
>