summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/prometheus_metrics
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-09-06 09:01:01 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-09-09 09:54:24 +0100
commit6a1b84c7b450e65eaad6bf016fc9b7310e89784c (patch)
tree8aa1ea260a8c0c09b9047b7bd3fba81143398cb3 /app/assets/javascripts/prometheus_metrics
parent5d952f756bcf0355fc5d86d819dfc6913c0ae351 (diff)
downloadgitlab-ce-6a1b84c7b450e65eaad6bf016fc9b7310e89784c.tar.gz
Use modules in common utils
Diffstat (limited to 'app/assets/javascripts/prometheus_metrics')
-rw-r--r--app/assets/javascripts/prometheus_metrics/prometheus_metrics.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js b/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js
index ef4d6df5138..a4d50a52315 100644
--- a/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js
+++ b/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js
@@ -1,4 +1,5 @@
import PANEL_STATE from './constants';
+import { backOff } from '../lib/utils/common_utils';
export default class PrometheusMetrics {
constructor(wrapperSelector) {
@@ -79,7 +80,7 @@ export default class PrometheusMetrics {
loadActiveMetrics() {
this.showMonitoringMetricsPanelState(PANEL_STATE.LOADING);
- gl.utils.backOff((next, stop) => {
+ backOff((next, stop) => {
$.getJSON(this.activeMetricsEndpoint)
.done((res) => {
if (res && res.success) {