Skip to content

Commit

Permalink
Merge pull request #4675 from h-kataria/show_0Provider_when_no_provid…
Browse files Browse the repository at this point in the history
…ers_are_available

Fixed to show 0 Provider in aggregate status card
  • Loading branch information
mzazrivec authored Sep 19, 2018
2 parents e969842 + 63fe846 commit 67306e5
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,19 @@ angular.module( 'patternfly.card' ).controller('aggregateStatusCardContainerCont
// icon/notifications and other info for providers
var providers_info = data.providers[0];

vm.status = {
"iconImage": providers_info[0].iconImage,
"largeIcon": true,
"notifications":[
{
"iconClass": providers_info[0].statusIcon,
},
],
};
if (typeof providers_info[0] === 'undefined') {
vm.status = {};
} else {
vm.status = {
"iconImage": providers_info[0].iconImage,
"largeIcon": true,
"notifications": [
{
"iconClass": providers_info[0].statusIcon,
},
],
};
}

// show total providers count and link on Containers dashboard only
if(all_providers_info !== null && typeof all_providers_info.href !== 'undefined') {
Expand Down

0 comments on commit 67306e5

Please sign in to comment.