1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-28 17:27:50 +01: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; vm.openControlSidebar = vm.usingControlSidebar && $document.width() > 768;
}); });
$scope.addLogin = function () { $scope.addCipher = function () {
$scope.$broadcast('vaultAddLogin'); $scope.$broadcast('vaultAddCipher');
}; };
$scope.addFolder = function () { $scope.addFolder = function () {

View File

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

View File

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