Skip to content

Commit

Permalink
Merge pull request #19047 from colemanw/crmD3
Browse files Browse the repository at this point in the history
[REF] Decouple crmD3 angular module from CiviMail
  • Loading branch information
seamuslee001 authored Nov 26, 2020
2 parents ab8c4a3 + bca4106 commit 6960dd4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion CRM/Mailing/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ public function getAngularModules() {
$result = [];
$result['crmMailing'] = include "$civicrm_root/ang/crmMailing.ang.php";
$result['crmMailingAB'] = include "$civicrm_root/ang/crmMailingAB.ang.php";
$result['crmD3'] = include "$civicrm_root/ang/crmD3.ang.php";

return $result;
}
Expand Down
1 change: 1 addition & 0 deletions Civi/Angular/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public function getModules() {
$angularModules['api4Explorer'] = include "$civicrm_root/ang/api4Explorer.ang.php";
$angularModules['api4'] = include "$civicrm_root/ang/api4.ang.php";
$angularModules['crmDashboard'] = include "$civicrm_root/ang/crmDashboard.ang.php";
$angularModules['crmD3'] = include "$civicrm_root/ang/crmD3.ang.php";

foreach (\CRM_Core_Component::getEnabledComponents() as $component) {
$angularModules = array_merge($angularModules, $component->getAngularModules());
Expand Down
8 changes: 2 additions & 6 deletions ang/crmD3.ang.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<?php
// This file declares an Angular module which can be autoloaded
// in CiviCRM. See also:
// http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules

// ODDITY: Only loads if you have CiviMail permissions.
// ODDITY: Extra resources loaded via CRM_Mailing_Info::getAngularModules.
// This module provides the D3 graphing library

return [
'ext' => 'civicrm',
'basePages' => [],
'js' => [
'ang/crmD3.js',
'bower_components/d3/d3.min.js',
Expand Down
1 change: 0 additions & 1 deletion ang/crmMailing.ang.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
// This file declares an Angular module which can be autoloaded
// ODDITY: Only loads if you have CiviMail permissions.
// ODDITY: Extra resources loaded via CRM_Mailing_Info::getAngularModules.

return [
'ext' => 'civicrm',
Expand Down
1 change: 0 additions & 1 deletion ang/crmMailingAB.ang.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
// This file declares an Angular module which can be autoloaded
// ODDITY: Only loads if you have CiviMail permissions.
// ODDITY: Extra resources loaded via CRM_Mailing_Info::getAngularModules.

return [
'ext' => 'civicrm',
Expand Down

0 comments on commit 6960dd4

Please sign in to comment.