1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Expand vault all tabs. Search from curr. tab page.

This commit is contained in:
Kyle Spearrin
2017-09-27 20:12:19 -04:00
parent 1fa3df1151
commit 41dda3bb61
9 changed files with 39 additions and 19 deletions

View File

@@ -9,7 +9,6 @@
$scope.i18n = i18nService;
$scope.showFolderCounts = !utilsService.isEdge();
$scope.showOnlyFolderView = utilsService.isEdge();
$scope.disableSearch = utilsService.isEdge();
$('#search').focus();
var syncOnLoad = $stateParams.syncOnLoad;
@@ -84,8 +83,8 @@
}
$scope.searchText = null;
if (state.searchText) {
$scope.searchText = state.searchText;
if (state.searchText || $stateParams.searchText) {
$scope.searchText = state.searchText || $stateParams.searchText;
}
$scope.folderSort = function (item) {
@@ -158,11 +157,6 @@
$timeout(loadVault, 500);
});
$scope.expandVault = function (e) {
$analytics.eventTrack('Expand Vault');
chrome.tabs.create({ url: '/popup/index.html#!/tab/vault' });
};
function storeState() {
stateService.saveState(stateKey, {
scrollY: getScrollY(),