diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-11-13 10:11:21 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-13 10:11:21 -0500 |
commit | a71c91289f87f4c01a5e3c87b5f00a2912fd07d6 (patch) | |
tree | 58edd8469c6a24bebc69dda43861e0ae2c6faed2 /iridescence/src/components/ProductSearch.vue | |
parent | 23272d18ef2eccd1a451bbd2aefb1f067b30962b (diff) | |
download | theglassyladies-a71c91289f87f4c01a5e3c87b5f00a2912fd07d6.tar.xz theglassyladies-a71c91289f87f4c01a5e3c87b5f00a2912fd07d6.zip |
fixed oldid in newproduct, shoved filter functionality into search/sort
(at least for initial deploy)
Diffstat (limited to 'iridescence/src/components/ProductSearch.vue')
-rw-r--r-- | iridescence/src/components/ProductSearch.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iridescence/src/components/ProductSearch.vue b/iridescence/src/components/ProductSearch.vue index 430721c..907602c 100644 --- a/iridescence/src/components/ProductSearch.vue +++ b/iridescence/src/components/ProductSearch.vue @@ -35,6 +35,8 @@ export default { term: "", sortOptions: { "Featured Items First": (_, b) => b.featured, + "In Stock": (a, b) => a.quantity < b.quantity, + "Made to Order": (a, b) => a.quantity > b.quantity, "Name (A-Z)": (a, b) => a.name > b.name, "Name (Z-A)": (a, b) => a.name < b.name, "Date Added (New to Old)": () => 0, |