prometheus/web
Łukasz Mierzwa e4f076f813
[UI] Fix small issues generating console errors (#8622)
* Checkbox should use onChange, not onClick

This fixes react console errors:

You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>

* Correctly pass key in metrics exporer

Instead of passing metric variable we pass 'metric' string, which causes console errors due to duplicated keys.

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>

* Update tests

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
2021-03-19 13:20:04 +01:00
..
api/v1 Add circular in-memory exemplars storage (#6635) 2021-03-16 15:17:45 +05:30
ui [UI] Fix small issues generating console errors (#8622) 2021-03-19 13:20:04 +01:00
federate.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
federate_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
web.go Add circular in-memory exemplars storage (#6635) 2021-03-16 15:17:45 +05:30
web_test.go Add TLS and basic authentication 2020-12-28 21:33:44 +01:00