From be3be964d6a5852e6fa66165d5249af065696a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Wed, 17 Jul 2019 11:23:29 +0200 Subject: [PATCH] Remove computed property --- .../Resources/Private/Assets/js/components/ProductDetail.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue index 0468d653..bf7ed070 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue @@ -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');