linkerd2/web
Andrew Seigner 2d17d6253d
Fix namespace-scoped Grafana links (#4119)
The `/namespaces` page in the web dashboard was rendering broken Grafana
links, containing an extra `var-namespace=` param, for example:
```
/grafana/dashboard/db/linkerd-namespace?var-namespace=&var-namespace=emojivoto
```

Root cause was the `GrafanaLink` component taking both `resource` and
`namespace` properties, but not special-casing when
`resource === 'namespace' && namespace === ''`.

Modify the `GrafanaLink` component to omit the `var-namespace` param
when a `namespace` property is not provided.

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2020-03-02 13:20:40 -08:00
..
app Fix namespace-scoped Grafana links (#4119) 2020-03-02 13:20:40 -08:00
srv Ensure cache does not store index_bundle.js (#3891) 2020-01-08 09:56:40 -08:00
templates Remove single namespace functionality (#2474) 2019-03-12 00:17:22 -07:00
Dockerfile Use correct go module file syntax (#4021) 2020-02-07 07:58:54 -08:00
main.go Add `as-group` CLI flag (#3952) 2020-01-22 16:38:31 +02:00