From 8070213036bab87ec0e439df1a2c8be7465ee6a5 Mon Sep 17 00:00:00 2001 From: elweyn Date: Wed, 22 Dec 2021 10:26:48 +0100 Subject: [PATCH] Remove props that are not used. --- admin/src/components/EditCreationFormular.vue | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/admin/src/components/EditCreationFormular.vue b/admin/src/components/EditCreationFormular.vue index 3a1c91a02..13b6ddd34 100644 --- a/admin/src/components/EditCreationFormular.vue +++ b/admin/src/components/EditCreationFormular.vue @@ -113,7 +113,7 @@ @click="submitCreation" :disabled="radioSelected === '' || value <= 0 || text.length < 10" > - Update Schöpfung ({{ type }},{{ pagetype }}) + Update Schöpfung @@ -127,15 +127,6 @@ import { updatePendingCreation } from '../graphql/updatePendingCreation' export default { name: 'EditCreationFormular', props: { - type: { - type: String, - required: false, - }, - pagetype: { - type: String, - required: false, - default: '', - }, item: { type: Object, required: false, @@ -143,13 +134,6 @@ export default { return {} }, }, - items: { - type: Array, - required: false, - default() { - return [] - }, - }, row: { type: Object, required: false, @@ -199,6 +183,7 @@ export default { updateRadioSelected(name, index, openCreation) { this.createdIndex = index this.rangeMin = 0 + console.log('this.creation, index', this.creation, index) this.rangeMax = this.creation[index] }, submitCreation() { @@ -247,7 +232,7 @@ export default { }, }, created() { - if (this.pagetype === 'PageCreationConfirm' && this.creationUserData.date) { + if (this.creationUserData.date) { switch (this.$moment(this.creationUserData.date).format('MMMM')) { case this.currentMonth.short: this.createdIndex = 2