Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checklist-model angular module #14634

Merged
merged 1 commit into from Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Civi/Angular/Manager.php
Expand Up @@ -80,6 +80,7 @@ public function getModules() {

$angularModules = [];
$angularModules['angularFileUpload'] = include "$civicrm_root/ang/angularFileUpload.ang.php";
$angularModules['checklist-model'] = include "$civicrm_root/ang/checklist-model.ang.php";
$angularModules['crmApp'] = include "$civicrm_root/ang/crmApp.ang.php";
$angularModules['crmAttachment'] = include "$civicrm_root/ang/crmAttachment.ang.php";
$angularModules['crmAutosave'] = include "$civicrm_root/ang/crmAutosave.ang.php";
Expand Down
10 changes: 10 additions & 0 deletions ang/checklist-model.ang.php
@@ -0,0 +1,10 @@
<?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

return [
'ext' => 'civicrm',
'basePages' => [],
'js' => ['bower_components/checklist-model/checklist-model.js'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colemanw - yup, the metadata looks right here. 👍

];
3 changes: 2 additions & 1 deletion bower.json
Expand Up @@ -33,7 +33,8 @@
"smartmenus": "~1.1",
"phantomjs-polyfill": "^0.0.2",
"es6-promise": "^4.2.4",
"angular-xeditable": "^0.9.0"
"angular-xeditable": "^0.9.0",
"checklist-model": "~1"
},
"resolutions": {
"angular": "~1.5.11",
Expand Down