From 7dd36c0e699a1154c7163f25bf488fbd63edeafe Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 7 Nov 2020 20:31:03 -0500 Subject: updated photo sets to not return original, added models to front, implemented front-to-back requests --- iridescence/src/store/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iridescence/src/store') diff --git a/iridescence/src/store/index.js b/iridescence/src/store/index.js index 1a83c01..2b24816 100644 --- a/iridescence/src/store/index.js +++ b/iridescence/src/store/index.js @@ -4,7 +4,7 @@ import Dichroism from "@/api/dichroism.js"; Vue.use(Vuex); -let dichroismApi = new Dichroism(); +let dichroism = new Dichroism(); export default new Vuex.Store({ state: { @@ -34,10 +34,10 @@ export default new Vuex.Store({ }, actions: { refreshProducts(context) { - context.commit("setProducts", dichroismApi.getProducts()); + context.commit("setProducts", dichroism.getProducts()); }, updateProduct(context, product) { - dichroismApi.updateProduct(product); + dichroism.updateProduct(product); context.dispatch("refreshProducts"); } }, -- cgit v1.2.3