From cc39796243c23a275c1885918448019f9c96ddf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Mon, 27 Jul 2020 09:31:07 +0200 Subject: [PATCH] Bugfix Edit Pricelist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gastro kann nur noch unter /gastro/pricelist und nicht unter /pricelist die preise ändern. --- src/components/pricelist/PriceList.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/pricelist/PriceList.vue b/src/components/pricelist/PriceList.vue index 299ce75..b84d658 100644 --- a/src/components/pricelist/PriceList.vue +++ b/src/components/pricelist/PriceList.vue @@ -20,7 +20,7 @@ {{ searchIcon }} - + - + Kategorien @@ -442,6 +442,9 @@ export default { typesLoading: 'priceList/typesLoading', isGastro: 'isGastro' }), + isGastroPage() { + return this.$route.name === 'gastroPricelist' + }, formTitle() { return this.editedIndex === -1 ? 'Neues Getränk' : 'Bearbeite Getränk' }, @@ -473,7 +476,7 @@ export default { created() { this.getPriceList() this.getTypes() - if (this.isGastro) { + if (this.isGastro && this.isGastroPage) { this.headers.push({ text: 'Aktion', value: 'action', @@ -481,6 +484,7 @@ export default { filterable: false }) } + console.log(this.$route) }, watch: { dialog(val) {