diff --git a/src/components/Tasks/Tools/Search.vue b/src/components/Tasks/Tools/Search.vue index 64acb6b..f1eb704 100644 --- a/src/components/Tasks/Tools/Search.vue +++ b/src/components/Tasks/Tools/Search.vue @@ -16,7 +16,7 @@ diff --git a/src/store/store-tasks.js b/src/store/store-tasks.js index cd617bf..4541b44 100644 --- a/src/store/store-tasks.js +++ b/src/store/store-tasks.js @@ -36,6 +36,9 @@ const mutations = { }, addTask (state, payload) { Vue.set(state.tasks, payload.id, payload.task) + }, + setSearch (state, value) { + state.search = value } } @@ -53,6 +56,9 @@ const actions = { task: task } commit('addTask', payload) + }, + setSearch ({ commit }, value) { + commit('setSearch', value) } }