mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Added toast config and messages when saving from vault. Persist scroll position when returning to vault from other pages.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
angular
|
||||
.module('bit.vault')
|
||||
|
||||
.controller('vaultViewSiteController', function ($scope, $stateParams, siteService, cipherService) {
|
||||
.controller('vaultViewSiteController', function ($scope, $state, $stateParams, siteService, cipherService) {
|
||||
var returnScrollY = $stateParams.returnScrollY;
|
||||
|
||||
$scope.site = null;
|
||||
siteService.get($stateParams.siteId, function (site) {
|
||||
cipherService.decryptSite(site).then(function (model) {
|
||||
@@ -17,4 +19,8 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$scope.close = function () {
|
||||
$state.go('tabs.vault', { animation: 'out-slide-down', scrollY: returnScrollY || 0 });
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user