Browse Source

Use "Open dashboard" everywhere (#11406)

Previously we had "Open metrics Dashboard" and "Configure metrics
dashboard" in the topology cards and then we had "Open Dashboard" in the
top nav when the dashboard was configured.

Now we use "Open dashboard" and "Configure dashboard".

This change was made for consistency in wording and casing. In addition,
the dashboard could be used for metrics but also other dashboards so
there's no need to scope it only to metrics. Also the config is:

```hcl
ui_config {
  dashboard_url_templates
}
```

Which does not mention metrics
pull/11483/head^2
Luke Kysow 3 years ago committed by GitHub
parent
commit
c61208146d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/packages/consul-ui/app/components/topology-metrics/index.hbs
  2. 2
      ui/packages/consul-ui/app/templates/dc/services/show.hbs

4
ui/packages/consul-ui/app/components/topology-metrics/index.hbs

@ -69,9 +69,9 @@
{{/if}} {{/if}}
<div class="link"> <div class="link">
{{#if @metricsHref}} {{#if @metricsHref}}
<a class="metrics-link" href={{@metricsHref}} target="_blank" rel="noopener noreferrer" data-test-metrics-anchor>Open metrics Dashboard</a> <a class="metrics-link" href={{@metricsHref}} target="_blank" rel="noopener noreferrer" data-test-metrics-anchor>Open dashboard</a>
{{else}} {{else}}
<a class="config-link" href="{{env 'CONSUL_DOCS_URL'}}/connect/observability/ui-visualization" target="_blank" rel="noopener noreferrer">Configure metrics dashboard</a> <a class="config-link" href="{{env 'CONSUL_DOCS_URL'}}/connect/observability/ui-visualization" target="_blank" rel="noopener noreferrer">Configure dashboard</a>
{{/if}} {{/if}}
</div> </div>
</div> </div>

2
ui/packages/consul-ui/app/templates/dc/services/show.hbs

@ -164,7 +164,7 @@ as |items item dc|}}
rel="noopener noreferrer" rel="noopener noreferrer"
data-test-dashboard-anchor data-test-dashboard-anchor
> >
Open Dashboard Open dashboard
</a> </a>
{{/if}} {{/if}}
</DataSource> </DataSource>

Loading…
Cancel
Save