From 724016fd1568e60e130f56d8d5870e17bae6aa8a Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Sat, 7 Feb 2015 15:40:01 +0100 Subject: [PATCH] Added default values for card counters when still loading card info --- .../delta/js/Clipperz/PM/UI/Components/Selections.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/delta/js/Clipperz/PM/UI/Components/Selections.js b/frontend/delta/js/Clipperz/PM/UI/Components/Selections.js index 73559ad..da8682a 100644 --- a/frontend/delta/js/Clipperz/PM/UI/Components/Selections.js +++ b/frontend/delta/js/Clipperz/PM/UI/Components/Selections.js @@ -87,17 +87,17 @@ console.log("SELECTIONS PROPS", this.props); return React.DOM.div({'key':'selections', 'id':'selections', 'className':filterType}, [ React.DOM.ul({'className':'defaultSet'}, [ React.DOM.li({'className':'allCards', 'onClick': this.selectAll}, [ - "All", - React.DOM.span({'className':'count'}, this.props['allCardsCount']) + React.DOM.span({'className':'label'}, "All"), + React.DOM.span({'className':'count'}, this.props['allCardsCount'] ? this.props['allCardsCount'] : '-') ]), React.DOM.li({'className':'recentCards', 'onClick': this.selectRecent}, [ - "Recent", - React.DOM.span({'className':'count'}, "10") + React.DOM.span({'className':'label'}, "Recent"), + React.DOM.span({'className':'count'}, this.props['allCardsCount'] ? '10' : '-') ]), // React.DOM.li({'className':'untaggedCards', 'onClick': this.selectUntaggedCards}, "Untagged - " + this.props['untaggedCardsCount']) React.DOM.li({'className':'untaggedCards', 'onClick': this.selectUntaggedCards}, [ - "Untagged", - React.DOM.span({'className':'count'}, this.props['untaggedCardsCount']) + React.DOM.span({'className':'label'}, "Untagged"), + React.DOM.span({'className':'count'}, this.props['untaggedCardsCount'] ? this.props['untaggedCardsCount'] : '-') ]) ]), React.DOM.div({'className':'search'}, [