Commit 5c20338a authored by colemanw's avatar colemanw

CRM-13823 - Remove unused api calls

parent 12c6fd36
......@@ -15,9 +15,6 @@
statuses: function(statuspageGetStatuses) {
return statuspageGetStatuses({sequential: 1});
},
statusModel: function(statuspageStatusModel) {
return statuspageStatusModel();
},
preferences: function(statuspageGetPreferences){
return statuspageGetPreferences();
}
......
(function(angular, $, _) {
/**
* get status messages
* build snooze options object reconciled with preferences
*
*/
angular.module('statuspage').service('statuspageStatusModel', function(crmApi, statuspageGetStatuses, statuspageGetPreferences){
return function() {
var statusModel = {
hushed: false,
getStatuses: statuspageGetStatuses,
getPreferences: statuspageGetPreferences,
};
statusModel.statuses = statusModel
.getStatuses(statusModel.hushed)
.then(function(result){
result.preferences = statuspageGetPreferences();
return result;
});
};
});
/**
* get status messages
* build snooze options object reconciled with preferences
*
*/
angular.module('statuspage').service('statuspageGetStatuses', function(crmApi, statuspageSeverityList) {
return function(apiFilter) {
return crmApi('System', 'check', apiFilter)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment