From 728c1cc31d0d323f74f7b980a1e183fb499d4e9e Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 26 Nov 2021 17:31:37 +0000 Subject: [PATCH] Display higher severity status checks first --- ang/crmStatusPage.js | 2 +- ang/crmStatusPage/StatusPageCtrl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ang/crmStatusPage.js b/ang/crmStatusPage.js index 4be75df5c8..c2eafe3935 100644 --- a/ang/crmStatusPage.js +++ b/ang/crmStatusPage.js @@ -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'}}); } } }); diff --git a/ang/crmStatusPage/StatusPageCtrl.js b/ang/crmStatusPage/StatusPageCtrl.js index 0fd79df29f..5dad04fc59 100644 --- a/ang/crmStatusPage/StatusPageCtrl.js +++ b/ang/crmStatusPage/StatusPageCtrl.js @@ -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) { -- 2.25.1