Commit | Line | Data |
---|---|---|
4d8e3559 NM |
1 | (function(angular, $, _) { |
2 | // Declare a list of dependencies. | |
3 | angular.module('statuspage', [ | |
4 | 'crmUi', 'crmUtil', 'ngRoute' | |
5 | ]); | |
6 | ||
7 | // router | |
8 | ||
9 | angular.module('statuspage').config( function($routeProvider) { | |
10 | $routeProvider.when('/status', { | |
11 | controller: 'statuspageStatusPage', | |
12 | templateUrl: '~/statuspage/StatusPage.html', | |
13 | ||
14 | resolve: { | |
f1e868f3 | 15 | statusData: function(crmApi) { |
28bd6c8d | 16 | return crmApi('System', 'check', {sequential: 1, options: {limit: 0}}); |
4d8e3559 NM |
17 | } |
18 | } | |
19 | }); | |
20 | ||
21 | } | |
22 | ); | |
23 | })(angular, CRM.$, CRM._); |