Fixed rendering of an empty list.

This commit is contained in:
neviyn 2018-11-01 10:28:17 +00:00
parent 058de81acd
commit 2666814ef5

View File

@ -52,7 +52,7 @@
<b-button v-on:click="getFiltered()">Refresh</b-button> <b-button v-on:click="getFiltered()">Refresh</b-button>
</b-col> </b-col>
</b-row> </b-row>
<b-container v-if="observationData != null" fluid> <b-container v-if="observationData != null && observationData.length > 0" fluid>
<b-card no-body> <b-card no-body>
<b-tabs pills card vertical> <b-tabs pills card vertical>
<b-tab v-for="(observation, index) in observationData" v-bind:key="index"> <b-tab v-for="(observation, index) in observationData" v-bind:key="index">
@ -110,6 +110,7 @@
</b-tab> </b-tab>
</b-tabs> </b-tabs>
</b-card> </b-card>
<b-button class="mt-2" variant="success" @click="getCSV()">CSV Dump</b-button>
</b-container> </b-container>
<b-container v-else> <b-container v-else>
<b-row> <b-row>
@ -119,7 +120,6 @@
</b-col> </b-col>
</b-row> </b-row>
</b-container> </b-container>
<b-button v-if="observationData != null" class="mt-2" variant="success" @click="getCSV()">CSV Dump</b-button>
</b-container> </b-container>
</template> </template>