From 9f9bcd5292feb6823bee0e054521e1549f409a28 Mon Sep 17 00:00:00 2001 From: Ross Perry Date: Fri, 10 Oct 2025 11:09:00 -0600 Subject: [PATCH 1/2] select all for recognize empty --- .../seed/js/controllers/column_settings_controller.js | 10 ++++++++++ seed/static/seed/partials/column_settings.html | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/seed/static/seed/js/controllers/column_settings_controller.js b/seed/static/seed/js/controllers/column_settings_controller.js index 0f20fd9822..9aba32d8f6 100644 --- a/seed/static/seed/js/controllers/column_settings_controller.js +++ b/seed/static/seed/js/controllers/column_settings_controller.js @@ -46,6 +46,7 @@ angular.module('SEED.controller.column_settings', []).controller('column_setting const originalColumns = angular.copy(columns); $scope.columns = columns; + $scope.all_recognize_empty = $scope.columns.every((col) => col.recognize_empty); const initial_matching_ids = columns.reduce((acc, cur) => { if (cur.is_matching_criteria) acc.push(cur.id); return acc; @@ -143,6 +144,7 @@ angular.module('SEED.controller.column_settings', []).controller('column_setting $scope.change_recognize_empty = (column) => { column.recognize_empty = !column.recognize_empty; + $scope.all_recognize_empty = $scope.columns.every((col) => col.recognize_empty); $scope.setModified(); }; @@ -317,6 +319,14 @@ angular.module('SEED.controller.column_settings', []).controller('column_setting } }; + $scope.toggle_all_recognize_empty = () => { + $scope.all_recognize_empty = !$scope.all_recognize_empty; + $scope.columns.forEach((col) => { + col.recognize_empty = $scope.all_recognize_empty; + }); + $scope.setModified(); + }; + const column_update_complete = (match_link_summary) => { $scope.columns_updated = true; const diff_count = _.keys(diff).length; diff --git a/seed/static/seed/partials/column_settings.html b/seed/static/seed/partials/column_settings.html index 1a4b4dbe69..cb53e41461 100644 --- a/seed/static/seed/partials/column_settings.html +++ b/seed/static/seed/partials/column_settings.html @@ -307,7 +307,13 @@

MODIFYING_COLUMN_SETTINGS

- + + + From 8b3d4ad44f58858d343d0a0f04fec1ea4decb0af Mon Sep 17 00:00:00 2001 From: Ross Perry Date: Fri, 10 Oct 2025 13:31:38 -0600 Subject: [PATCH 2/2] prettier --- seed/static/seed/partials/column_settings.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seed/static/seed/partials/column_settings.html b/seed/static/seed/partials/column_settings.html index cb53e41461..4e250ba6d5 100644 --- a/seed/static/seed/partials/column_settings.html +++ b/seed/static/seed/partials/column_settings.html @@ -307,7 +307,10 @@

MODIFYING_COLUMN_SETTINGS

- +