Let empty-result previews be tracked for future-listing alerts
This commit is contained in:
@@ -52,8 +52,8 @@ templ ItemPreview(d PreviewData) {
|
|||||||
</div>
|
</div>
|
||||||
} else if d.Empty {
|
} else if d.Empty {
|
||||||
<div class="v-flash">
|
<div class="v-flash">
|
||||||
<div class="font-semibold mb-1">No results found</div>
|
<div class="font-semibold mb-1">Nothing listed right now</div>
|
||||||
<div>Try a broader search query or a different marketplace.</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>
|
</div>
|
||||||
} else {
|
} else {
|
||||||
<div class="v-card p-5">
|
<div class="v-card p-5">
|
||||||
@@ -144,7 +144,7 @@ templ confirmForm(d PreviewData) {
|
|||||||
@hidden("actor_sold", d.Form.ActorSold)
|
@hidden("actor_sold", d.Form.ActorSold)
|
||||||
@hidden("actor_price_compare", d.Form.ActorPriceCompare)
|
@hidden("actor_price_compare", d.Form.ActorPriceCompare)
|
||||||
@hiddenBool("use_price_comparison", d.Form.UsePriceComparison)
|
@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>
|
<a class="v-btn-ghost" href="/items/new">Back</a>
|
||||||
</form>
|
</form>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ func ItemPreview(d PreviewData) templ.Component {
|
|||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
} else if d.Empty {
|
} 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 {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
@@ -523,7 +523,7 @@ func confirmForm(d PreviewData) templ.Component {
|
|||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
if d.Empty || d.Error != "" {
|
if d.Error != "" {
|
||||||
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, " disabled")
|
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 38, " disabled")
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
|
|||||||
Reference in New Issue
Block a user