1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02:00

vault fixes

This commit is contained in:
Kyle Spearrin 2018-03-17 12:01:03 -04:00
parent dcb0416fd6
commit 8bc9dafff2
3 changed files with 11 additions and 3 deletions

View File

@ -51,7 +51,11 @@
$q.all([collectionPromise, cipherPromise]).then(function () {
$scope.loading = false;
$("#search").focus();
$timeout(function () {
if ($('body').hasClass('control-sidebar-open')) {
$("#search").focus();
}
}, 500);
if ($state.params.search) {
$uibModalStack.dismissAll();

View File

@ -22,7 +22,11 @@
}
$scope.$on('$viewContentLoaded', function () {
$("#search").focus();
$timeout(function () {
if ($('body').hasClass('control-sidebar-open')) {
$("#search").focus();
}
}, 500);
if (($rootScope.vaultFolders || $rootScope.vaultCollections) && $rootScope.vaultCiphers) {
$scope.loading = false;

View File

@ -222,7 +222,7 @@
<div class="control-sidebar-section" ng-show="!loading && vaultCollections.length">
<ul class="control-sidebar-menu">
<li ng-repeat="collection in vaultCollections | orderBy: [groupingSort] track by collection.id"
ng-class="{active: selectedCollection && collection.id === selectedCollection}">
ng-class="{active: selectedCollection && collection.id === selectedCollection.id}">
<a href="#" stop-click ng-click="filterCollection(collection)">
<i class="fa fa-caret-right fa-fw"></i>
{{collection.name}}