Commit 922a8477 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch...

Merge branch 'ce-9510-new-metric-button-should-not-be-duplicated-on-custom-metrics-page' into 'master'

CE: Remove duplicated 'New metric' button in Prometheus configuration

See merge request gitlab-org/gitlab-ce!31394
parents 44065b01 2f47bce8
......@@ -272,7 +272,7 @@
}
.custom-monitored-metrics {
.card-title {
.card-header {
display: flex;
align-items: center;
......@@ -292,17 +292,6 @@
}
}
.loading-metrics,
.empty-metrics {
padding: 30px 10px;
p,
.btn {
margin-top: 10px;
margin-bottom: 0;
}
}
.loading-metrics .metrics-load-spinner {
color: $gl-gray-700;
}
......
......@@ -8,15 +8,16 @@
.col-lg-9
.card.js-panel-monitored-metrics{ data: { active_metrics: active_common_project_prometheus_metrics_path(project, :json), metrics_help_path: help_page_path('user/project/integrations/prometheus_library/index') } }
.card-header
= s_('PrometheusService|Common metrics')
%strong
= s_('PrometheusService|Common metrics')
%span.badge.badge-pill.js-monitored-count 0
.card-body
.loading-metrics.js-loading-metrics
%p.prepend-top-10.prepend-left-10
%p.m-3
= icon('spinner spin', class: 'metrics-load-spinner')
= s_('PrometheusService|Finding and configuring metrics...')
.empty-metrics.hidden.js-empty-metrics
%p.text-tertiary.prepend-top-10.prepend-left-10
%p.text-tertiary.m-3
= s_('PrometheusService|Waiting for your first deployment to an environment to find common metrics')
%ul.list-unstyled.metrics-list.hidden.js-metrics-list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment