From 62ba5364a11239c3a1b370ba7e916650872770dc Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 3 Jan 2021 16:00:00 -0700 Subject: [PATCH] Add state commits for hand modifications. --- web/src/store/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/store/index.js b/web/src/store/index.js index a561802..0177e06 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -107,6 +107,12 @@ export default new Vuex.Store({ setObject(state, chosenObject) { state.chosen_object = chosenObject; }, + replaceHand(state, questions) { + state.questions = questions; + }, + appendToHand(state, questions) { + state.questions.push(...questions); + }, }, actions: { },