1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

added vault search

This commit is contained in:
Kyle Spearrin
2016-09-13 00:14:49 -04:00
parent a2916418ac
commit 348f5e7ef1
10 changed files with 112 additions and 13 deletions

View File

@@ -3,6 +3,7 @@
.controller('vaultViewSiteController', function ($scope, $state, $stateParams, siteService, cipherService, tldjs, toastr) {
var returnScrollY = $stateParams.returnScrollY;
var returnSearchText = $stateParams.returnSearchText;
$scope.site = null;
siteService.get($stateParams.siteId, function (site) {
@@ -34,8 +35,22 @@
});
});
$scope.edit = function (site) {
$state.go('editSite', {
animation: 'in-slide-up',
siteId: site.id,
fromView: true,
returnScrollY: returnScrollY || 0,
returnSearchText: returnSearchText
});
}
$scope.close = function () {
$state.go('tabs.vault', { animation: 'out-slide-down', scrollY: returnScrollY || 0 });
$state.go('tabs.vault', {
animation: 'out-slide-down',
scrollY: returnScrollY || 0,
searchText: returnSearchText
});
};
$scope.launchWebsite = function (site) {