1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-20 07:40:57 +02:00
bitwarden-browser/src/popup/app/vault/vaultViewSiteController.js

20 lines
542 B
JavaScript
Raw Normal View History

2016-09-06 05:43:56 +02:00
angular
.module('bit.vault')
.controller('vaultViewSiteController', function ($scope, siteService, cipherService) {
$scope.site = null;
siteService.get($scope.parentScope.focusedSiteId, function (site) {
cipherService.decryptSite(site).then(function (model) {
$scope.site = model;
});
});
2016-09-06 05:43:56 +02:00
$scope.editSite = function () {
// TODO
2016-09-06 05:43:56 +02:00
};
$scope.close = function () {
$scope.parentScope.closeViewSite();
};
});