Display higher severity status checks first
authorMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 26 Nov 2021 17:31:37 +0000 (17:31 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 26 Nov 2021 17:31:48 +0000 (17:31 +0000)
ang/crmStatusPage.js
ang/crmStatusPage/StatusPageCtrl.js

index 4be75df5c8bde52ed29fda83d5dd89877a9efd32..c2eafe3935f3cd6eed2dd42b53664c0080e9f57b 100644 (file)
@@ -9,7 +9,7 @@
 
       resolve: {
         statusData: function(crmApi) {
-          return crmApi('System', 'check', {sequential: 1, options: {limit: 0}});
+          return crmApi('System', 'check', {sequential: 1, options: {limit: 0, sort: 'severity_id DESC'}});
         }
       }
     });
index 0fd79df29f4b3b6c4f8f47061fe90dd647739fd8..5dad04fc593c67f282ce5bcd62909ca057144ebc 100644 (file)
@@ -10,7 +10,7 @@
       // Refresh the list. Optionally execute api calls first.
       function refresh(apiCalls, title) {
         title = title || 'Untitled operation';
-        apiCalls = (apiCalls || []).concat([['System', 'check', {sequential: 1, options: {limit: 0}}]]);
+        apiCalls = (apiCalls || []).concat([['System', 'check', {sequential: 1, options: {limit: 0, sort: 'severity_id DESC'}}]]);
         $('#crm-status-list').block();
         crmApi(apiCalls, true)
           .then(function(results) {