summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/header_search/store/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/header_search/store/actions.js')
-rw-r--r--app/assets/javascripts/header_search/store/actions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/header_search/store/actions.js b/app/assets/javascripts/header_search/store/actions.js
index 2c3b1bd4c0f..0ba956f3ed1 100644
--- a/app/assets/javascripts/header_search/store/actions.js
+++ b/app/assets/javascripts/header_search/store/actions.js
@@ -14,6 +14,10 @@ export const fetchAutocompleteOptions = ({ commit, getters }) => {
});
};
+export const clearAutocomplete = ({ commit }) => {
+ commit(types.CLEAR_AUTOCOMPLETE);
+};
+
export const setSearch = ({ commit }, value) => {
commit(types.SET_SEARCH, value);
};