Merge branch 'hotfix/fix-availability-#525'
This commit is contained in:
+2
-3
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user