drupal-civicrm/sites/all/modules/civicrm/ang/crmStatusPage.js

20 lines
478 B
JavaScript
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
(function(angular, $, _) {
angular.module('statuspage', CRM.angRequires('statuspage'));
// router
angular.module('statuspage').config( function($routeProvider) {
$routeProvider.when('/status', {
controller: 'statuspageStatusPage',
templateUrl: '~/statuspage/StatusPage.html',
resolve: {
statusData: function(crmApi) {
return crmApi('System', 'check', {sequential: 1});
}
}
});
}
);
})(angular, CRM.$, CRM._);