diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-09-15 17:24:00 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-09-15 17:24:00 -0400 |
commit | 253dceb5591c5a39122f1439a721ce5b0b3fc97c (patch) | |
tree | 0a217184cd29f6ff8bc23fa9b7163594cdccf096 /iridescence/src/components/ProductCard.vue | |
parent | 78daddbbbee1b67bbf3960e3d4d08d0757547207 (diff) | |
download | theglassyladies-253dceb5591c5a39122f1439a721ce5b0b3fc97c.tar.xz theglassyladies-253dceb5591c5a39122f1439a721ce5b0b3fc97c.zip |
added new product button, added search bar to admin view
Diffstat (limited to 'iridescence/src/components/ProductCard.vue')
-rw-r--r-- | iridescence/src/components/ProductCard.vue | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/iridescence/src/components/ProductCard.vue b/iridescence/src/components/ProductCard.vue index 269e416..36c7be5 100644 --- a/iridescence/src/components/ProductCard.vue +++ b/iridescence/src/components/ProductCard.vue @@ -39,10 +39,8 @@ export default { }, computed: { stock() { - if (this.quantity < 0) { + if (this.quantity == 0) { return "Made to order"; - } else if (this.quantity == 0) { - return "Out of stock"; } else { return [this.quantity, "in stock"].join(" "); } |