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
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-06-27 21:30:40 +0300
committerMike Greiling <mike@pixelcog.com>2019-06-27 21:30:40 +0300
commite29a51360fb3a2b3f96e697110fd9542d6773880 (patch)
tree5dca41406bc1d384aff7ba78662feb81319219f8 /app
parent50b69083d19fca516a9e0425f7b1bab4b84c2b18 (diff)
parente1ff11db5a011b042b7020d40851bec0e7b47ec8 (diff)
Merge branch 'dohtaset' into 'master'
Fix charts on Cluster page See merge request gitlab-org/gitlab-ce!30073
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/monitoring/monitoring_bundle.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/assets/javascripts/monitoring/monitoring_bundle.js b/app/assets/javascripts/monitoring/monitoring_bundle.js
index edbcf84b342..97d149e9ad5 100644
--- a/app/assets/javascripts/monitoring/monitoring_bundle.js
+++ b/app/assets/javascripts/monitoring/monitoring_bundle.js
@@ -8,10 +8,12 @@ export default (props = {}) => {
const el = document.getElementById('prometheus-graphs');
if (el && el.dataset) {
- store.dispatch('monitoringDashboard/setFeatureFlags', {
- prometheusEndpointEnabled: gon.features.environmentMetricsUsePrometheusEndpoint,
- multipleDashboardsEnabled: gon.features.environmentMetricsShowMultipleDashboards,
- });
+ if (gon.features) {
+ store.dispatch('monitoringDashboard/setFeatureFlags', {
+ prometheusEndpointEnabled: gon.features.environmentMetricsUsePrometheusEndpoint,
+ multipleDashboardsEnabled: gon.features.environmentMetricsShowMultipleDashboards,
+ });
+ }
const [currentDashboard] = getParameterValues('dashboard');