Commit 96f84698 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'gt-clear-input-on-ops-project-search-on-submit' into 'master'

Clear ops dashboard project search input on submit

Closes #8262

See merge request gitlab-org/gitlab-ee!8239
parents c628b6c7 05866cc5
...@@ -53,6 +53,7 @@ export const requestAddProjectsToDashboardError = ({ state }) => { ...@@ -53,6 +53,7 @@ export const requestAddProjectsToDashboardError = ({ state }) => {
export const addProjectToken = ({ commit }, project) => { export const addProjectToken = ({ commit }, project) => {
commit(types.ADD_PROJECT_TOKEN, project); commit(types.ADD_PROJECT_TOKEN, project);
commit(types.SET_INPUT_VALUE, '');
}; };
export const clearProjectSearchResults = ({ commit }) => { export const clearProjectSearchResults = ({ commit }) => {
......
---
title: Clear ops dashboard project search input on submit
merge_request: 8239
author: George Tsiolis
type: fixed
...@@ -213,6 +213,10 @@ describe('actions', () => { ...@@ -213,6 +213,10 @@ describe('actions', () => {
type: types.ADD_PROJECT_TOKEN, type: types.ADD_PROJECT_TOKEN,
payload: mockOneProject, payload: mockOneProject,
}, },
{
type: types.SET_INPUT_VALUE,
payload: '',
},
], ],
[], [],
done, done,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment