Merge branch 'hotfix/fix-availability-#525'

This commit is contained in:
Björn Fromme
2019-07-17 11:23:44 +02:00
@@ -35,6 +35,7 @@
data () {
return {
datesRows: {},
available: true,
altLabel: null,
altProductLink: null,
priceTableRows: {},
@@ -82,9 +83,6 @@
computed: {
dateLabel () {
return this.dateStart + ' - ' + this.dateEnd;
},
available () {
return !$.isEmptyObject(this.datesRows);
}
},
methods: {
@@ -107,6 +105,7 @@
this.altLabel = json.altLabel;
this.altProductLink = json.altProductLink;
}
this.available = json.dates.length > 0;
this.loading = false;
EventBus.$emit('tableLoaded');
}, 'json');