Let empty-result previews be tracked for future-listing alerts
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user