From: Coleman Watts Date: Thu, 21 Jan 2021 15:38:34 +0000 (-0500) Subject: SearchKit - Make UI less confusing by not allowing joins to be switched X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4df8a1df90191d35cc41ed929a8ed2fa3553b9b6;p=civicrm-core.git SearchKit - Make UI less confusing by not allowing joins to be switched Switching a join was confusing and buggy. Best to disable that and only allow them to be deleted --- diff --git a/ext/search/ang/crmSearchAdmin/compose/criteria.html b/ext/search/ang/crmSearchAdmin/compose/criteria.html index 78c75a391a..eefa730caa 100644 --- a/ext/search/ang/crmSearchAdmin/compose/criteria.html +++ b/ext/search/ang/crmSearchAdmin/compose/criteria.html @@ -4,8 +4,11 @@
- + +
diff --git a/ext/search/ang/crmSearchAdmin/crmSearchAdmin.component.js b/ext/search/ang/crmSearchAdmin/crmSearchAdmin.component.js index ad1580caec..353851435f 100644 --- a/ext/search/ang/crmSearchAdmin/crmSearchAdmin.component.js +++ b/ext/search/ang/crmSearchAdmin/crmSearchAdmin.component.js @@ -255,15 +255,6 @@ }); }; - $scope.changeJoin = function(idx) { - if (ctrl.savedSearch.api_params.join[idx][0]) { - ctrl.savedSearch.api_params.join[idx].length = 2; - loadFieldOptions(); - } else { - ctrl.clearParam('join', idx); - } - }; - $scope.changeGroupBy = function(idx) { if (!ctrl.savedSearch.api_params.groupBy[idx]) { ctrl.clearParam('groupBy', idx); diff --git a/ext/search/css/search.css b/ext/search/css/search.css index 319fdb1400..d6ac891b3c 100644 --- a/ext/search/css/search.css +++ b/ext/search/css/search.css @@ -69,9 +69,6 @@ right: 0; top: 0; } -#bootstrap-theme.crm-search crm-search-clause > .btn-group .btn { - border: 0 none; -} #bootstrap-theme.crm-search fieldset div.api4-input { margin-bottom: 10px;