Merge pull request #22382 from colemanw/api4ExplorerFormatArrayParams
[civicrm-core.git] / ang / crmMailing.ang.php
1 <?php
2 // This file declares an Angular module which can be autoloaded
3 // ODDITY: Only loads if you have CiviMail permissions.
4
5 return [
6 'ext' => 'civicrm',
7 'js' => [
8 'ang/crmMailing.js',
9 'ang/crmMailing/*.js',
10 ],
11 'css' => ['ang/crmMailing.css'],
12 'partials' => ['ang/crmMailing'],
13 'settingsFactory' => ['CRM_Mailing_Info', 'createAngularSettings'],
14 'requires' => ['crmUtil', 'crmAttachment', 'crmAutosave', 'ngRoute', 'ui.utils', 'crmUi', 'dialogService', 'crmResource'],
15 'permissions' => [
16 'view all contacts',
17 'edit all contacts',
18 'access CiviMail',
19 'create mailings',
20 'schedule mailings',
21 'approve mailings',
22 'delete in CiviMail',
23 'edit message templates',
24 ],
25 ];