From 9ab2456fe34b0ecaf910641ca2385bd542ea124e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 30 Jun 2021 16:48:40 -0400 Subject: [PATCH] APIv4 explorer - move metadata into .ang.php file --- CRM/Api4/Page/Api4Explorer.php | 2 -- ang/api4Explorer.ang.php | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Api4/Page/Api4Explorer.php b/CRM/Api4/Page/Api4Explorer.php index 655800bfe5..af188f3136 100644 --- a/CRM/Api4/Page/Api4Explorer.php +++ b/CRM/Api4/Page/Api4Explorer.php @@ -40,9 +40,7 @@ class CRM_Api4_Page_Api4Explorer extends CRM_Core_Page { 'groupOptions' => array_column((array) $groupOptions, 'options', 'name'), ]; Civi::resources() - ->addBundle('bootstrap3') ->addVars('api4', $vars) - ->addPermissions(['access debug output', 'edit groups', 'administer reserved groups']) ->addScriptFile('civicrm', 'bower_components/js-yaml/dist/js-yaml.min.js') ->addScriptFile('civicrm', 'bower_components/marked/marked.min.js') ->addScriptFile('civicrm', 'bower_components/google-code-prettify/bin/prettify.min.js') diff --git a/ang/api4Explorer.ang.php b/ang/api4Explorer.ang.php index 2eec108aaf..d0ac2be6ec 100644 --- a/ang/api4Explorer.ang.php +++ b/ang/api4Explorer.ang.php @@ -1,5 +1,5 @@ 'civicrm', 'js' => [ @@ -13,5 +13,7 @@ return [ 'ang/api4Explorer', ], 'basePages' => [], + 'bundles' => ['bootstrap3'], + 'permissions' => ['access debug output', 'edit groups', 'administer reserved groups'], 'requires' => ['crmUi', 'crmUtil', 'ngRoute', 'crmRouteBinder', 'ui.sortable', 'api4', 'ngSanitize', 'dialogService', 'checklist-model'], ]; -- 2.25.1