From c20bce6ffd5da76281ce17a2b92fdefbc2b2fd8b Mon Sep 17 00:00:00 2001
From: vkovtun <vkovtun@ethz.ch>
Date: Wed, 7 Jun 2023 14:28:04 +0200
Subject: [PATCH] SSDM-13693: Added a few missing fields in export.

---
 .../html/js/views/ArchivingHelper/ArchivingHelperView.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js
index b8b22005f3d..39f72586d66 100644
--- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js
+++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/ArchivingHelper/ArchivingHelperView.js
@@ -75,6 +75,15 @@ function ArchivingHelperView(archivingHelperController, archivingHelperModel) {
             exportableProperty: DataGridExportOptions.EXPORTABLE_FIELD.SAMPLE,
             sortable : false
         }];
+        searchView.additionalLastColumns = [{
+            label : "Size",
+            property : "size",
+            exportableProperty: DataGridExportOptions.EXPORTABLE_FIELD.SIZE,
+            sortable : false,
+            render : function(data, grid) {
+                return PrintUtil.renderNumberOfBytes(data.size);
+            }
+        }];
         searchView._paintRulesPanel($rulesPanel);
         searchView._$entityTypeDropdown.val("DATASET");
         searchView._$entityTypeDropdown.trigger("change");
-- 
GitLab