summaryrefslogtreecommitdiff
path: root/iridescence/src/store/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'iridescence/src/store/index.js')
-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");
}
},