diff options
Diffstat (limited to 'www/crm/wp-content/plugins/civicrm/civicrm/ang/crmStatusPage.js')
-rw-r--r-- | www/crm/wp-content/plugins/civicrm/civicrm/ang/crmStatusPage.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmStatusPage.js b/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmStatusPage.js new file mode 100644 index 00000000..b0db81a3 --- /dev/null +++ b/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmStatusPage.js @@ -0,0 +1,19 @@ +(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._); |