Commit 642477f0 authored by Håvard Vika Røen's avatar Håvard Vika Røen
Browse files

added nodata message for validate

parent 64dc8c84
......@@ -76,6 +76,10 @@ export default {
this.showChart = true;
this.$refs.chart.removeSeries();
const series = await ValidateService.observations(id, from, to, true, true);
if(series.length==0) {
Notify.error("No data");
return;
}
this.$refs.chart.addSeries(series);
// Add data to grid
......
......@@ -33,7 +33,7 @@ export default {
this.$refs.chart.removeSeries();
//const t = timeseries.map(function(item) { return "'" + item.value; }).join("',") + "'";
console.log(timeseries);
// console.log(timeseries);
// debugger
const series = await HistoricalService.observations(timeseries, from, to, onlyValidValues, viewAsBar);
this.$refs.chart.addSeries(series);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment