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) {