prometheus/web
slava 5e974d3170 Fix context for the showWarning function (#5833)
* Fix context for the showWarning function

If the difference between the current time on a client and time on a server is quite big, Prometheus tries to show a related warning in UI on the Graph tab. But in the code, an incorrect context is used to invoke this method. As a result, an error is showed in the web developer console and the whole page stop working at all. This commit fixes the context.

CC @juliusv

Signed-off-by: Vyacheslav Kulakov <vkulakov@swiftserve.com>

* Fix context for the showWarning function

Fixed assets

CC @juliusv

Signed-off-by: Vyacheslav Kulakov <vkulakov@swiftserve.com>
2019-08-05 20:03:12 +02:00
..
api Fix log config setup (#5807) 2019-07-29 18:00:30 +01:00
ui Fix context for the showWarning function (#5833) 2019-08-05 20:03:12 +02:00
federate.go *: enable all default linters (#5504) 2019-05-03 15:11:28 +02:00
federate_test.go Fix staticcheck errors 2019-04-17 01:40:10 +02:00
web.go web: fix flaky TestHTTPMetrics() (#5695) 2019-06-24 15:48:15 +02:00
web_test.go web: fix flaky TestHTTPMetrics() (#5695) 2019-06-24 15:48:15 +02:00