Skip to content

Commit

Permalink
[OGUI-378] Inform user when plots were not loaded (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
graduta authored Jul 24, 2019
1 parent 02b7ea2 commit 267f1ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Control/public/environment/environmentPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ const showContent = (environment, item) => [
]
),
environment.plots.match({
NotAsked: () => null,
NotAsked: () => h('.w-100.text-center.grafana-font', 'Grafana plots were not loaded, please refresh the page'),
Loading: () => null,
Success: (data) => showEmbeddedGraphs(data),
Failure: () => null,
Failure: () => h('.w-100.text-center.grafana-font',
'Grafana plots were not loaded, please contact an administrator'
),
})
]
),
Expand Down

0 comments on commit 267f1ca

Please sign in to comment.