From 310d8f28bb282d44a7b01265b790f7a8edf5b199 Mon Sep 17 00:00:00 2001 From: einhorn_b Date: Thu, 23 Nov 2023 15:13:02 +0100 Subject: [PATCH] show hideResubmissionCheckbox only on page with pending contribution, else default false --- admin/src/pages/CreationConfirm.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index 6841579fc..a0cd9a8a3 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -6,8 +6,8 @@ {{ $t('no_hashtag') }}

-

- +

+ {{ $t('hide_resubmission') }} @@ -132,7 +132,7 @@ export default { pageSize: 25, query: '', noHashtag: null, - hideResubmission: true, + hideResubmissionModel: true, } }, watch: { @@ -433,6 +433,12 @@ export default { return 'info' } }, + showResubmissionCheckbox() { + return this.tabIndex === 0 + }, + hideResubmission() { + return this.showResubmissionCheckbox ? this.hideResubmissionModel : false + }, }, apollo: { ListAllContributions: {