1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-24 16:49:26 +01:00

rename to itemCount

This commit is contained in:
Kyle Spearrin 2017-01-04 23:40:20 -05:00
parent 1456f81e31
commit 56e120f593
2 changed files with 6 additions and 6 deletions

View File

@ -60,16 +60,16 @@
$rootScope.vaultFolders = decFolders;
$rootScope.vaultLogins = decLogins;
// compute site count for each folder
// compute item count for each folder
for (var i = 0; i < decFolders.length; i++) {
var siteCount = 0;
var itemCount = 0;
for (var j = 0; j < decLogins.length; j++) {
if (decLogins[j].folderId == decFolders[i].id) {
siteCount++;
if (decLogins[j].folderId === decFolders[i].id) {
itemCount++;
}
}
$rootScope.vaultFolders[i].siteCount = siteCount;
$rootScope.vaultFolders[i].itemCount = itemCount;
}
if (!delayLoad) {

View File

@ -18,7 +18,7 @@
ng-repeat="folder in vaultFolders | orderBy: folderSort">
{{folder.name}}
<i class="fa fa-chevron-right fa-lg"></i>
<span class="item-sub-label">{{folder.siteCount}}</span>
<span class="item-sub-label">{{folder.itemCount}}</span>
</a>
</div>
</div>