Fix product URL for a new custorder scenario

This commit is contained in:
Lance Edgar 2021-11-06 20:31:55 -05:00
parent 5d875bc731
commit 3990854d42
2 changed files with 7 additions and 3 deletions

View file

@ -527,6 +527,7 @@
type="is-primary"
tag="a" target="_blank"
:href="productURL"
:disabled="!productURL"
icon-pack="fas"
icon-left="external-link-alt">
View Product
@ -1536,8 +1537,7 @@
this.productUnitPriceDisplay = selected.unit_price_display
this.productCasePriceDisplay = selected.case_price_display
this.productImageURL = selected.image_url
// TODO: this needs to come from handler i guess..
// this.productURL = row.product_url
this.productURL = selected.url
this.productQuantity = 1
this.productUnitChoices = selected.uom_choices
// TODO: seems like the default should not be so generic?