From a48ac543cf0d7d88b83e87ca83e7c85066d6a13d Mon Sep 17 00:00:00 2001 From: Sadiq Khoja Date: Thu, 24 Oct 2024 15:36:59 -0400 Subject: [PATCH 1/7] Make multiselect and data range picker disableable --- src/components/date-range-picker.vue | 24 ++++++++++++++-- src/components/multiselect.vue | 14 ++++++++- src/composables/disabled.js | 2 +- test/components/date-range-picker.spec.js | 27 +++++++++++++++++ test/components/multiselect.spec.js | 35 +++++++++++++++++++---- test/composables/disabled.spec.js | 2 +- 6 files changed, 93 insertions(+), 11 deletions(-) diff --git a/src/components/date-range-picker.vue b/src/components/date-range-picker.vue index c80eccf74..d873f6062 100644 --- a/src/components/date-range-picker.vue +++ b/src/components/date-range-picker.vue @@ -16,10 +16,12 @@ except according to the terms contained in the LICENSE file. https://github.com/ankurk91/vue-flatpickr-component/issues/47 --> @@ -84,6 +89,10 @@ export default { type: Number, required: true }, + deleted: { + type: Boolean, + default: false + }, canUpdate: Boolean }, setup() { diff --git a/src/components/submission/table.vue b/src/components/submission/table.vue index 9335701a7..00ebc52d3 100644 --- a/src/components/submission/table.vue +++ b/src/components/submission/table.vue @@ -17,7 +17,8 @@ except according to the terms contained in the LICENSE file. {{ $t('common.rowNumber') }} {{ $t('header.submitterName') }} {{ $t('header.submissionDate') }} - {{ $t('header.stateAndActions') }} + {{ $t('header.stateAndActions') }} + {{ $t('header.deletedAt') }}