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>
}

View File

@@ -91,7 +91,7 @@ func ItemPreview(d PreviewData) templ.Component {
return templ_7745c5c3_Err
}
} else if d.Empty {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "<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>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "<div class=\"v-flash\"><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>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -523,7 +523,7 @@ func confirmForm(d PreviewData) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
if d.Empty || d.Error != "" {
if d.Error != "" {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, " disabled")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err