summaryrefslogtreecommitdiff
path: root/iridescence/src/components/ProductCard.vue
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-09-15 17:24:00 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-09-15 17:24:00 -0400
commit253dceb5591c5a39122f1439a721ce5b0b3fc97c (patch)
tree0a217184cd29f6ff8bc23fa9b7163594cdccf096 /iridescence/src/components/ProductCard.vue
parent78daddbbbee1b67bbf3960e3d4d08d0757547207 (diff)
downloadtheglassyladies-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.vue4
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(" ");
}