debian-mirror-gitlab/app/assets/javascripts/pages/admin/integrations/edit/index.js

16 lines
607 B
JavaScript
Raw Normal View History

2020-04-08 14:13:33 +05:30
import IntegrationSettingsForm from '~/integrations/integration_settings_form';
import PrometheusMetrics from '~/prometheus_metrics/prometheus_metrics';
2021-09-30 23:02:18 +05:30
function initIntegrations() {
2020-04-08 14:13:33 +05:30
const prometheusSettingsWrapper = document.querySelector('.js-prometheus-metrics-monitoring');
const integrationSettingsForm = new IntegrationSettingsForm('.js-integration-settings-form');
integrationSettingsForm.init();
if (prometheusSettingsWrapper) {
const prometheusMetrics = new PrometheusMetrics('.js-prometheus-metrics-monitoring');
prometheusMetrics.loadActiveMetrics();
}
2021-09-30 23:02:18 +05:30
}
initIntegrations();