1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2025-10-30 02:47:36 +01:00

Added explicit count for all cards

This commit is contained in:
Giulio Cesare Solaroli
2015-02-06 17:24:31 +01:00
parent 782d7102c9
commit 6c021b5772
2 changed files with 30 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ Clipperz.PM.UI.Components.Selections = React.createClass({
var filterType;
var filterValue;
//console.log("SELECTIONS PROPS", this.props);
console.log("SELECTIONS PROPS", this.props);
tagInfo = this.props['tags'] ? this.props['tags'] : {};
tags = MochiKit.Base.filter(Clipperz.PM.DataModel.Record.isRegularTag, MochiKit.Base.keys(tagInfo)).sort(Clipperz.Base.caseInsensitiveCompare);
archivedCardsCount = this.props['archivedCardsCount'];
@@ -86,10 +86,19 @@ Clipperz.PM.UI.Components.Selections = React.createClass({
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.li({'className':'recentCards', 'onClick': this.selectRecent}, "Recent"),
React.DOM.li({'className':'allCards', 'onClick': this.selectAll}, [
"All",
React.DOM.span({'className':'count'}, this.props['allCardsCount'])
]),
React.DOM.li({'className':'recentCards', 'onClick': this.selectRecent}, [
"Recent",
React.DOM.span({'className':'count'}, "10")
]),
// React.DOM.li({'className':'untaggedCards', 'onClick': this.selectUntaggedCards}, "Untagged - " + this.props['untaggedCardsCount'])
React.DOM.li({'className':'untaggedCards', 'onClick': this.selectUntaggedCards}, "Untagged")
React.DOM.li({'className':'untaggedCards', 'onClick': this.selectUntaggedCards}, [
"Untagged",
React.DOM.span({'className':'count'}, this.props['untaggedCardsCount'])
])
]),
React.DOM.div({'className':'search'}, [
React.DOM.form({'className':'searchForm'}, [