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 () { data () {
return { return {
datesRows: {}, datesRows: {},
available: true,
altLabel: null, altLabel: null,
altProductLink: null, altProductLink: null,
priceTableRows: {}, priceTableRows: {},
@@ -82,9 +83,6 @@
computed: { computed: {
dateLabel () { dateLabel () {
return this.dateStart + ' - ' + this.dateEnd; return this.dateStart + ' - ' + this.dateEnd;
},
available () {
return !$.isEmptyObject(this.datesRows);
} }
}, },
methods: { methods: {
@@ -107,6 +105,7 @@
this.altLabel = json.altLabel; this.altLabel = json.altLabel;
this.altProductLink = json.altProductLink; this.altProductLink = json.altProductLink;
} }
this.available = json.dates.length > 0;
this.loading = false; this.loading = false;
EventBus.$emit('tableLoaded'); EventBus.$emit('tableLoaded');
}, 'json'); }, 'json');