summaryrefslogtreecommitdiff
path: root/iridescence/src/store
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-07 20:31:03 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-07 20:31:03 -0500
commit7dd36c0e699a1154c7163f25bf488fbd63edeafe (patch)
tree1a0d76539acba7b77f1abe9fb443ac98523ed7e5 /iridescence/src/store
parent2c408648c70614a88c0412faf6d3a00d147379a2 (diff)
downloadtheglassyladies-7dd36c0e699a1154c7163f25bf488fbd63edeafe.tar.xz
theglassyladies-7dd36c0e699a1154c7163f25bf488fbd63edeafe.zip
updated photo sets to not return original, added models to front,
implemented front-to-back requests
Diffstat (limited to 'iridescence/src/store')
-rw-r--r--iridescence/src/store/index.js6
1 files changed, 3 insertions, 3 deletions
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");
}
},