SearchKit - Tweak export explorer link icon + format
authorColeman Watts <coleman@civicrm.org>
Wed, 22 Dec 2021 05:42:16 +0000 (00:42 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 22 Dec 2021 05:42:16 +0000 (00:42 -0500)
Updates the explorer params to use raw strings, as json-encoding
is not necessary.

ang/api4Explorer/Explorer.js
ext/search_kit/ang/crmSearchAdmin/crmSearchAdminExport.component.js
ext/search_kit/ang/crmSearchAdmin/crmSearchAdminExport.html

index fc52999c568c6c6613e1dac4c1d78211bfbeaf12..b85f4734f07c4ec02c5a57c3a532d942f477fdb3 100644 (file)
     $scope.$bindToRoute({
       expr: 'selectedTab.code',
       param: '_lang',
+      format: 'raw',
       default: 'php'
     });
     $scope.$bindToRoute({
       expr: '$ctrl.resultFormat',
       param: '_format',
+      format: 'raw',
       default: 'json'
     });
 
index 2124fca3c254e590961d6400f164b8658d837b7e..8d60739432a837302cb2eba59056f9fe3171a75c 100644 (file)
@@ -20,7 +20,7 @@
       ];
 
       this.$onInit = function() {
-        this.apiExplorerLink = CRM.url('civicrm/api4#/explorer/SavedSearch/export?id=' + ctrl.savedSearchId);
+        this.apiExplorerLink = CRM.url('civicrm/api4#/explorer/SavedSearch/export?_format=php&id=' + ctrl.savedSearchId);
 
         var findDisplays = _.transform(ctrl.displayNames, function(findDisplays, displayName) {
           findDisplays.push(['search_displays', 'CONTAINS', ctrl.savedSearchName + '.' + displayName]);
index 9de448ddbca7c41f51bd8f836d7822749b92c206..c7682bc377c1b268aeae80f84ccccbc7089697f2 100644 (file)
@@ -5,7 +5,7 @@
       {{:: ts('Search configuration can be copied from here, then pasted into "Import" to e.g. transfer between sites.') }}
     </p>
     <p>
-      <i class="crm-i fa-gift"></i>
+      <i class="crm-i fa-suitcase"></i>
       {{:: ts('Note: to package for distribution in an extension, use:') }}
       <a ng-href="{{:: $ctrl.apiExplorerLink }}" target="_blank">
         <u>{{:: ts('API Explorer Export') }}</u>