Skip to content

Commit d499071

Browse files
authored
fix(ui): correctly display selected image model (#8208)
Signed-off-by: Dedy F. Setyawan <dedyfajars@gmail.com>
1 parent 26a374b commit d499071

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/http/views/image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="flex items-center justify-between gap-2">
1919
<label class="text-xs font-medium text-[var(--color-text-secondary)] uppercase tracking-wide flex-shrink-0">Model</label>
2020
</div>
21-
<select x-data="{ link : '' }" x-model="link" x-init="$watch('link', value => window.location = link)"
21+
<select x-data="{ link : '{{if .Model}}image/{{.Model}}{{end}}' }" x-model="link" x-init="$watch('link', value => window.location = link)"
2222
id="model-select"
2323
class="input w-full p-1.5 text-xs"
2424
>

0 commit comments

Comments
 (0)