1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

Added site count to folder header

This commit is contained in:
Kyle Spearrin 2017-01-04 23:11:17 -05:00
parent 6787da7667
commit 8a8e2bdf80
2 changed files with 28 additions and 22 deletions

View File

@ -24,15 +24,15 @@
</div>
<div ng-if="vaultLogins.length && (vaultLogins.length < 100 || (searchText && searchText.length >= 2))">
<div class="list">
<div class="list-grouped" ng-repeat="folder in vaultFolders | orderBy: folderSort" ng-show="vaultFolders.length">
<div ng-if="(vaultLogins | filter: { folderId: folder.id } | filter: searchLogins()).length">
<div class="list-grouped" ng-repeat="folder in vaultFolders | orderBy: folderSort" ng-show="vaultFolderLogins.length">
<div class="list-grouped-header">
<i class="fa fa-folder-open"></i> {{folder.name}}
<small>{{vaultFolderLogins.length}}</small>
</div>
<a href="javascript:void(0)" ng-click="viewLogin(login)"
class="list-grouped-item condensed" title="{{i18n.edit}} {{login.name}}"
ng-repeat="login in vaultLogins | filter: { folderId: folder.id }
| filter: searchLogins() | orderBy: ['name', 'username']">
ng-repeat="login in vaultFolderLogins = (vaultLogins | filter: { folderId: folder.id }
| filter: searchLogins() | orderBy: ['name', 'username'])">
<span class="btn-list" ng-click="$event.stopPropagation()" title="{{i18n.copyPassword}}" ngclipboard
ngclipboard-error="clipboardError(e)" ngclipboard-success="clipboardSuccess(e, i18n.password)"
data-clipboard-text="{{login.password}}" ng-class="{'disabled': !login.password}">
@ -49,7 +49,6 @@
</div>
</div>
</div>
</div>
<div class="centered-message" ng-if="loaded && !vaultLogins.length">
<p>
{{i18n.noLoginsInList}}

View File

@ -187,6 +187,13 @@
background-color: transparent;
padding: 10px 10px;
color: @gray-light;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
small {
float: right;
}
}
}