Let empty-result previews be tracked for future-listing alerts

This commit is contained in:
prosolis
2026-06-19 21:53:18 -07:00
parent ea457aecee
commit b6fadf6504
2 changed files with 5 additions and 5 deletions

View File

@@ -52,8 +52,8 @@ templ ItemPreview(d PreviewData) {
</div>
} else if d.Empty {
<div class="v-flash">
<div class="font-semibold mb-1">No results found</div>
<div>Try a broader search query or a different marketplace.</div>
<div class="font-semibold mb-1">Nothing listed right now</div>
<div>Track it anyway. Veola will alert you when it appears. Leave the target price blank to be notified on any new listing.</div>
</div>
} else {
<div class="v-card p-5">
@@ -144,7 +144,7 @@ templ confirmForm(d PreviewData) {
@hidden("actor_sold", d.Form.ActorSold)
@hidden("actor_price_compare", d.Form.ActorPriceCompare)
@hiddenBool("use_price_comparison", d.Form.UsePriceComparison)
<button type="submit" class="v-btn" disabled?={ d.Empty || d.Error != "" }>Confirm and Track</button>
<button type="submit" class="v-btn" disabled?={ d.Error != "" }>Confirm and Track</button>
<a class="v-btn-ghost" href="/items/new">Back</a>
</form>
}