From b460b03bbf87b4d799a9f8429a1cc647ff273e8d Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 7 Jul 2015 17:21:20 -0700 Subject: [PATCH] CRM-16173 - ManageCtrl - Display errors about AppMetas --- ang/crmCxn/ManageCtrl.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ang/crmCxn/ManageCtrl.js b/ang/crmCxn/ManageCtrl.js index 794646f75f..9e7d127c75 100644 --- a/ang/crmCxn/ManageCtrl.js +++ b/ang/crmCxn/ManageCtrl.js @@ -2,7 +2,13 @@ angular.module('crmCxn').controller('CrmCxnManageCtrl', function CrmCxnManageCtrl($scope, apiCalls, crmApi, crmUiAlert, crmBlocker, crmStatus, $timeout, dialogService) { var ts = $scope.ts = CRM.ts(null); - $scope.appMetas = apiCalls.appMetas.values; + if (apiCalls.appMetas.is_error) { + $scope.appMetas = []; + CRM.alert(apiCalls.appMetas.error_message, ts('Application List Unavailable'), 'error'); + } + else { + $scope.appMetas = apiCalls.appMetas.values; + } $scope.cxns = apiCalls.cxns.values; $scope.alerts = _.where(apiCalls.sysCheck.values, {name: 'checkCxnOverrides'}); -- 2.25.1