summaryrefslogtreecommitdiff
path: root/iridescence/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'iridescence/src/components')
-rw-r--r--iridescence/src/components/ProductSearch.vue2
-rw-r--r--iridescence/src/components/admin/NewProduct.vue2
2 files changed, 3 insertions, 1 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,
diff --git a/iridescence/src/components/admin/NewProduct.vue b/iridescence/src/components/admin/NewProduct.vue
index cd8a93e..3d2e1f2 100644
--- a/iridescence/src/components/admin/NewProduct.vue
+++ b/iridescence/src/components/admin/NewProduct.vue
@@ -17,7 +17,7 @@
<button class="delete" @click="toggleModal"></button>
</header>
<section class="modal-card-body">
- <ProductEditCard v-bind:index="-1"></ProductEditCard>
+ <ProductEditCard v-bind:oldid="-1"></ProductEditCard>
</section>
<footer class="modal-card-foot"></footer>
</div>