Fix the dashboard vue app to work with the new and old metrics dashboard routes
Fix the dashboard vue app to work with the new and old metrics and metrics_dashboard routes:
- Do not display error if
hasMetricsis false in dashboard.vue. It will be false when no environment exists. - If the
environment_idURL parameter is passed to the metrics dashboard HTML page, add the URL parameter to themetrics_dashboard.jsonAPI call, and to the Prometheus proxy API calls. -
this.graphData?.metrics[0].resultcan sometimes be null, which causes errors on the browser console. Investigate.
Edited by Reuben Pereira