mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-08 09:32:07 +01:00
rename to itemCount
This commit is contained in:
parent
1456f81e31
commit
56e120f593
@ -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) {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user