summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/stores/actions.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-15 09:27:11 +0100
committerPhil Hughes <me@iamphill.com>2018-06-27 10:44:13 +0100
commitf1a01babb19686ef9c152c9bff7b23db4136db22 (patch)
treeeac6d5f159692051574932564c2183e4b62439fe /app/assets/javascripts/ide/stores/actions.js
parentb5f2adf173c37e60943daa80764fb4031ac414d6 (diff)
downloadgitlab-ce-f1a01babb19686ef9c152c9bff7b23db4136db22.tar.gz
make error messages a first class citizen in Web IDE
This is to reduce the dependancy on the flash module which just modifies the DOM, whereas this now correcly uses the vDOM
Diffstat (limited to 'app/assets/javascripts/ide/stores/actions.js')
-rw-r--r--app/assets/javascripts/ide/stores/actions.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js
index 3dc365eaead..5e91fa915ff 100644
--- a/app/assets/javascripts/ide/stores/actions.js
+++ b/app/assets/javascripts/ide/stores/actions.js
@@ -175,6 +175,9 @@ export const setRightPane = ({ commit }, view) => {
export const setLinks = ({ commit }, links) => commit(types.SET_LINKS, links);
+export const setErrorMessage = ({ commit }, errorMessage) =>
+ commit(types.SET_ERROR_MESSAGE, errorMessage);
+
export * from './actions/tree';
export * from './actions/file';
export * from './actions/project';