Stopped graph showing with no data.

This commit is contained in:
neviyn 2018-10-09 14:46:14 +01:00
parent c8ddbcaabc
commit ea54e27e6e

View File

@ -45,8 +45,8 @@
</b-col> </b-col>
</b-row> </b-row>
<b-row> <b-row>
<b-col> <b-col v-if="chartData != null && chartData.labels.length > 0">
<stats-view v-if="chartData != null && chartData !== {}" v-bind:chartData="chartData" <stats-view v-bind:chartData="chartData"
style="position: relative; height:80vh" :options="options"/> style="position: relative; height:80vh" :options="options"/>
</b-col> </b-col>
</b-row> </b-row>
@ -56,8 +56,9 @@
<script> <script>
import Vue from "vue"; import Vue from "vue";
import StatsView from "../components/StatsView"; import StatsView from "../components/StatsView";
import "vue-awesome/icons/exclamation-circle";
var moment = require("moment"); var moment = require("moment");
export default { export default {
name: "stats", name: "stats",
components: {StatsView}, components: {StatsView},