From 207c4d27d38c829e33955a91c5ee02c085bde546 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 8 Sep 2021 10:10:17 -0400 Subject: [PATCH] SearchKit - Use bootstrap table classes on admin screens --- .../resultsTable/crmSearchAdminResultsTable.component.js | 1 + .../crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.html | 2 +- .../searchListing/crmSearchAdminSearchListing.component.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.component.js b/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.component.js index 194449d167..c41cb0b86a 100644 --- a/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.component.js @@ -34,6 +34,7 @@ limit: CRM.crmSearchAdmin.defaultPagerSize, pager: {show_count: true, expose_limit: true}, actions: true, + classes: ['table', 'table-striped'], button: ts('Search'), columns: _.transform(ctrl.search.api_params.select, function(columns, fieldExpr) { var column = {label: true}, diff --git a/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.html b/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.html index 101d101949..9642bf5537 100644 --- a/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.html +++ b/ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.html @@ -4,7 +4,7 @@
- +
diff --git a/ext/search_kit/ang/crmSearchAdmin/searchListing/crmSearchAdminSearchListing.component.js b/ext/search_kit/ang/crmSearchAdmin/searchListing/crmSearchAdminSearchListing.component.js index f80bb64878..7ab366651d 100644 --- a/ext/search_kit/ang/crmSearchAdmin/searchListing/crmSearchAdminSearchListing.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/searchListing/crmSearchAdminSearchListing.component.js @@ -96,6 +96,7 @@ limit: CRM.crmSearchAdmin.defaultPagerSize, pager: {show_count: true, expose_limit: true}, actions: false, + classes: ['table', 'table-striped'], sort: [['modified_date', 'DESC']], columns: [ searchMeta.fieldToColumn('label', { -- 2.25.1