linkerd2/web/app
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
..
__mocks__ Use jest instead of karma for running tests (#1768) 2018-10-15 17:06:35 -07:00
css Add `linkerd check` to dashboard (#3656) 2019-11-12 12:37:36 -08:00
img Add grafana icon to links, refactor svgs, link to ResourceDetail component (#1482) 2018-08-17 15:12:33 -07:00
integration Adding new browser tests for URL routing in dashboard (#3646) 2019-12-02 18:18:34 -08:00
js Fix namespace-scoped Grafana links (#4119) 2020-03-02 13:20:40 -08:00
test Removing TLS columns from tables in dashboard (#2611) 2019-04-02 16:54:39 -07:00
.babelrc Update deps (#3369) 2019-09-05 17:49:50 -07:00
.eslintrc Refactoring to suppress eslint warnings jsx-a11y/click-events-have-key-events (#3995) 2020-02-11 09:28:02 -08:00
index_bundle.js.lodash.tmpl Hash JS bundle to expire cache (#2058) 2019-01-16 12:59:30 -08:00
package.json Adopt more common Javascript linting conventions (#3882) 2020-01-08 15:01:16 -08:00
webpack-mv-plugin.js Hash JS bundle to expire cache (#2058) 2019-01-16 12:59:30 -08:00
webpack.config.js Updating clean-webpack-plugin and other webpack dependencies (#3575) 2019-10-16 11:25:21 -07:00
yarn.lock Adopt more common Javascript linting conventions (#3882) 2020-01-08 15:01:16 -08:00