Skip to content
Snippets Groups Projects
Commit 72793286 authored by John Cowen's avatar John Cowen Committed by John Cowen
Browse files

ui: Add `Service.Namespace` variable to dashboard URL templates (#11640)

We currently allow only Datacenter, Service.Name, this PR adds Service.Namespace.
parent 66f577ac
No related merge requests found
```release-note:bug
ui: Include `Service.Namespace` into available variables for `dashboard_url_templates`
```
......@@ -85,7 +85,10 @@
{{#if urls.service}}
<a href={{render-template urls.service (hash
Datacenter=dc.Name
Service=(hash Name=item.Service.Service)
Service=(hash
Name=item.Service.Service
Namespace=(or item.Service.Namespace '')
)
)}}
target="_blank"
rel="noopener noreferrer"
......
......@@ -29,7 +29,10 @@
@topology={{topology}}
@metricsHref={{render-template urls.service (hash
Datacenter=dc.Name
Service=items.firstObject
Service=(hash
Name=items.firstObject.Name
Namespace=(or items.firstObject.Namespace '')
)
)}}
@isRemoteDC={{not dc.Local}}
@hasMetricsProvider={{hasMetricsProvider}}
......
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