I am new to trello, I would like to know how can I display more than one card-badge when my trello power-up is initialize?
the problem here is that only one card-badge is shown.
here is my initialize code:
TrelloPowerUp.initialize({
'board-buttons': function(t, options){
return [{
icon: WHITE_ICON,
text: 'Time Manager',
callback: boardButtonCallback
}];
},
'card-badges': function(t, options){
return {
title: 'First card-badge',
text: 'Not valid',
icon: GRAY_ICON,
color: 'blue',
};
},'card-badges': function(t, options){
return {
title: 'Second card-badge',
text: 'Valid',
icon: GRAY_ICON,
color: 'red',
};
},
'card-detail-badges': function(t, options) {
return initializeCardBadges(t);
},
});
the "Second card-badge" is shown, but the "First card-badge" is not showing. is this possible to make both card badge appear.