mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-29 12:55:21 +01:00
no sites message for vault and current tab pages
This commit is contained in:
parent
a5e05b6f3d
commit
2552d027b9
@ -5,6 +5,7 @@
|
|||||||
<div class="title">Current Tab Sites</div>
|
<div class="title">Current Tab Sites</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content content-tabs">
|
<div class="content content-tabs">
|
||||||
|
<div ng-if="sites.length">
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="list-grouped">
|
<div class="list-grouped">
|
||||||
<div ng-click="fillSite(site)" class="list-grouped-item condensed" style="cursor: pointer;"
|
<div ng-click="fillSite(site)" class="list-grouped-item condensed" style="cursor: pointer;"
|
||||||
@ -23,3 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div ng-if="!sites.length">
|
||||||
|
<p>No sites available for tab. <a href="" ng-click="addSite()">Add one</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@ -64,9 +64,19 @@
|
|||||||
return item.name.toLowerCase();
|
return item.name.toLowerCase();
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.setFolderFilter = function (folder) {
|
$scope.filterByFolder = function (folder) {
|
||||||
$scope.folderFilter = {};
|
|
||||||
$scope.folderFilter.folderId = folder.id;
|
};
|
||||||
|
|
||||||
|
$scope.searchSites = function () {
|
||||||
|
if (!$scope.searchText) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
return function (site) {
|
||||||
|
return (site.name && site.name.indexOf($scope.searchText) !== -1) ||
|
||||||
|
(site.username && site.username.indexOf($scope.searchText) !== -1);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.addSite = function () {
|
$scope.addSite = function () {
|
||||||
|
@ -8,13 +8,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content content-tabs">
|
<div class="content content-tabs">
|
||||||
|
<div ng-if="vaultSites.length">
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="list-grouped" ng-repeat="folder in vaultFolders | orderBy: folderSort" ng-show="vaultFolders.length">
|
<div class="list-grouped" ng-repeat="folder in vaultFolders | orderBy: folderSort" ng-show="vaultFolders.length">
|
||||||
|
<div ng-if="(vaultSites | filter: { folderId: folder.id } | filter: searchSites()).length">
|
||||||
<div class="list-grouped-header">
|
<div class="list-grouped-header">
|
||||||
<i class="fa fa-folder-open"></i> {{folder.name}}
|
<i class="fa fa-folder-open"></i> {{folder.name}}
|
||||||
</div>
|
</div>
|
||||||
<div ng-click="viewSite(site)" class="list-grouped-item condensed" style="cursor: pointer;"
|
<div ng-click="viewSite(site)" class="list-grouped-item condensed" style="cursor: pointer;"
|
||||||
ng-repeat="site in folderSites = (vaultSites | filter: { folderId: folder.id } | filter: (searchText || '') | orderBy: ['name', 'username'])">
|
ng-repeat="site in folderSites = (vaultSites | filter: { folderId: folder.id } | filter: searchSites() | orderBy: ['name', 'username'])">
|
||||||
<a class="btn-list" href="" ng-click="$event.stopPropagation()" title="Copy Password" ngclipboard ngclipboard-error="clipboardError(e)"
|
<a class="btn-list" href="" ng-click="$event.stopPropagation()" title="Copy Password" ngclipboard ngclipboard-error="clipboardError(e)"
|
||||||
ngclipboard-success="clipboardSuccess(e, 'Password')" data-clipboard-text="{{site.password}}" ng-class="{'disabled': !site.password}">
|
ngclipboard-success="clipboardSuccess(e, 'Password')" data-clipboard-text="{{site.password}}" ng-class="{'disabled': !site.password}">
|
||||||
<i class="fa fa-lg fa-key"></i>
|
<i class="fa fa-lg fa-key"></i>
|
||||||
@ -29,3 +31,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div ng-if="!sites.length">
|
||||||
|
<p>No sites to list. <a href="" ng-click="addSite()">Add one</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user