From c7c367b506291da4e9e727191d5d6be474e5f88b Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Tue, 26 Sep 2023 10:36:09 +0530 Subject: [PATCH] Improved: UI for displaying mapping fields on export page, changed the button to fab, added support to reorder fields, and updated the logic to save the mappings(#269) --- src/views/DownloadPackedOrders.vue | 138 ++++++++++++++++++++--------- 1 file changed, 96 insertions(+), 42 deletions(-) diff --git a/src/views/DownloadPackedOrders.vue b/src/views/DownloadPackedOrders.vue index 6177784d..a588f293 100644 --- a/src/views/DownloadPackedOrders.vue +++ b/src/views/DownloadPackedOrders.vue @@ -22,25 +22,41 @@ + + + {{ $t('Selected Fields: ') }} {{ Object.keys(selectedFieldMappings).length }} + {{ $t('Add custom field') }} + + + + + {{ fields[field] ? fields[field].label : field }} + {{ $t('Custom Label') }} + + {{ value }} + + + + {{ value }} + + + + + + + + {{ $t("Select the fields you want to include in your export") }} {{ $t('Select all') }} - - + + {{ fields[field] ? fields[field].label : field }} - {{ $t('Custom Label') }} - - {{ value }} - - - - {{ $t('Add custom field') }} - {{ key }} {{ field.value }} @@ -49,12 +65,13 @@ - - - {{ $t("Export") }} - - + + + + + + @@ -62,8 +79,8 @@