1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

fixes for item filtering in vault

This commit is contained in:
Kyle Spearrin 2017-10-09 08:20:58 -04:00
parent b13edfeeae
commit 52f3032483
4 changed files with 8 additions and 8 deletions

View File

@ -49,8 +49,8 @@ angular
vm.openControlSidebar = vm.usingControlSidebar && $document.width() > 768;
});
$scope.addLogin = function () {
$scope.$broadcast('vaultAddLogin');
$scope.addCipher = function () {
$scope.$broadcast('vaultAddCipher');
};
$scope.addFolder = function () {

View File

@ -168,7 +168,7 @@
});
};
$scope.$on('vaultAddLogin', function (event, args) {
$scope.$on('vaultAddCipher', function (event, args) {
$scope.addCipher();
});

View File

@ -54,7 +54,7 @@
<ul class="dropdown-menu dropdown-menu-right">
<li>
<a href="#" stop-click ng-click="addCipher(null, true)">
<i class="fa fa-fw fa-plus-circle"></i> Add Item
<i class="fa fa-fw fa-plus-circle"></i> New Item
</a>
</li>
</ul>
@ -74,7 +74,7 @@
<table class="table table-striped table-hover table-vmiddle">
<tbody>
<tr ng-repeat="cipher in favoriteCiphers = (ciphers | filter: { favorite: true } |
filter: (main.searchVaultText || '')) track by cipher.id">
filter: cipherFilter | filter: (main.searchVaultText || '')) track by cipher.id">
<td style="width: 70px;">
<div class="btn-group" data-append-to="body">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
@ -149,7 +149,7 @@
<ul class="dropdown-menu dropdown-menu-right">
<li>
<a href="#" stop-click ng-click="addCipher(folder)">
<i class="fa fa-fw fa-plus-circle"></i> Add Item
<i class="fa fa-fw fa-plus-circle"></i> New Item
</a>
</li>
<li ng-show="folder.id">

View File

@ -46,8 +46,8 @@
<a ui-sref="backend.user.vault"><i class="fa fa-lock fa-fw"></i> <span>My Vault</span></a>
<ul class="treeview-menu" ng-class="{'menu-open': $state.includes('backend.user.vault')}">
<li>
<a href="#" stop-click ng-click="addLogin()">
<i class="fa fa-plus-circle fa-fw"></i> New Login
<a href="#" stop-click ng-click="addCipher()">
<i class="fa fa-plus-circle fa-fw"></i> New Item
</a>
</li>
<li>