diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-11-24 16:43:00 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-11-24 18:35:10 +0300 |
commit | 0bee018631ae199ce87125c21379e1db2f56bf67 (patch) | |
tree | e2c4aa7cb0cd45c48eae6579112afd1c85eb33ec /app/assets/javascripts/dispatcher.js | |
parent | 5413bf0426917846ed49bfa556ec46dd09a8cd3a (diff) |
Adds JS to toggle buttons [ci skip]
Diffstat (limited to 'app/assets/javascripts/dispatcher.js')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index 34708977d20..49459f01bea 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -550,7 +550,15 @@ import ProjectVariables from './project_variables'; import(/* webpackChunkName: "clusters" */ './clusters/clusters_bundle') .then(cluster => new cluster.default()) // eslint-disable-line new-cap .catch((err) => { - Flash(s__('ClusterIntegration|Problem setting up the cluster JavaScript')); + Flash(s__('ClusterIntegration|Problem setting up the cluster')); + throw err; + }); + break; + case 'projects:clusters:index': + import(/* webpackChunkName: "clusters_index" */ './clusters/clusters_index') + .then(clusterIndex => new clusterIndex.default()) // eslint-disable-line new-cap + .catch((err) => { + Flash(s__('ClusterIntegration|Problem setting up the clusters list')); throw err; }); break; |