Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/static_site_editor/store/actions.js')
-rw-r--r--app/assets/javascripts/static_site_editor/store/actions.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/static_site_editor/store/actions.js b/app/assets/javascripts/static_site_editor/store/actions.js
index c57ef86f6ef..9f5e9e8c589 100644
--- a/app/assets/javascripts/static_site_editor/store/actions.js
+++ b/app/assets/javascripts/static_site_editor/store/actions.js
@@ -26,9 +26,12 @@ export const submitChanges = ({ state: { projectId, content, sourcePath, usernam
return submitContentChanges({ content, projectId, sourcePath, username })
.then(data => commit(mutationTypes.SUBMIT_CHANGES_SUCCESS, data))
.catch(error => {
- commit(mutationTypes.SUBMIT_CHANGES_ERROR);
- createFlash(error.message);
+ commit(mutationTypes.SUBMIT_CHANGES_ERROR, error.message);
});
};
+export const dismissSubmitChangesError = ({ commit }) => {
+ commit(mutationTypes.DISMISS_SUBMIT_CHANGES_ERROR);
+};
+
export default () => {};