Fixed throwing an error when a grid item didn't contain any data
the build was successful Details

This commit is contained in:
kolaente 2017-12-06 10:16:54 +01:00
parent 22ee38f7b4
commit b4c6d0a3db
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 13 additions and 11 deletions

View File

@ -14,20 +14,22 @@
</thead> </thead>
<tbody> <tbody>
<tr v-for="entry in filteredData"> <tr v-for="entry in filteredData">
<td v-for="item in entry" v-if="!item.hide"> <template v-for="item in entry" v-if="item || item === 0 || item === ''">
<template v-if="item.content"> <td v-if="!item.hide">
<template v-if="item.link"> <template v-if="item.content">
<router-link v-bind:to="item.link">{{item.content}}</router-link> <template v-if="item.link">
<router-link v-bind:to="item.link">{{item.content}}</router-link>
</template>
<template v-else>
{{item.content}}
</template>
</template> </template>
<template v-else-if="item.content === ''"></template>
<template v-else> <template v-else>
{{item.content}} {{item}}
</template> </template>
</template> </td>
<template v-else-if="item.content === ''"></template> </template>
<template v-else>
{{item}}
</template>
</td>
<td v-if="buttons"> <td v-if="buttons">
<span v-for="btn in buttons"> <span v-for="btn in buttons">
<button v-bind:class="btn.css" @click="btnclick(btn, entry)"> <button v-bind:class="btn.css" @click="btnclick(btn, entry)">