Skip to content

Commit

Permalink
feat(info): add not scannable message to site_info
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Aug 16, 2018
1 parent ae52e29 commit 157c4db
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ th:nth-child(3) {
}
.VueTables__child-row-toggler--closed::before {
content: "+";
content: '+';
}
.VueTables__child-row-toggler--open::before {
content: "-";
content: '-';
}
</style>

Expand Down Expand Up @@ -107,10 +107,11 @@ export default {
perPage: this.sitesData.length,
rowClassCallback(row) {
console.log('row: ', row);
if(!row.site_info || row.site_info.error) return 'danger';
if (!row.site_info) return 'warning';
if (row.site_info && row.site_info.error) return 'danger';
// return 'success';
}
}
};
},
columns() {
Expand All @@ -120,7 +121,7 @@ export default {
headings() {
let h = {};
this._fields.forEach(field => {
h[field.name] = field.title || field.name
h[field.name] = field.title || field.name;
});
return h;
},
Expand Down

0 comments on commit 157c4db

Please sign in to comment.