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

view site loaded with siteId parameter

This commit is contained in:
Kyle Spearrin
2016-09-08 22:23:56 -04:00
parent ab9593a53a
commit e3c21f17f8
5 changed files with 13 additions and 35 deletions

View File

@@ -1,19 +1,11 @@
angular
.module('bit.vault')
.controller('vaultViewSiteController', function ($scope, siteService, cipherService) {
.controller('vaultViewSiteController', function ($scope, $stateParams, siteService, cipherService) {
$scope.site = null;
siteService.get($scope.parentScope.focusedSiteId, function (site) {
siteService.get($stateParams.siteId, function (site) {
cipherService.decryptSite(site).then(function (model) {
$scope.site = model;
});
});
$scope.editSite = function () {
// TODO
};
$scope.close = function () {
$scope.parentScope.closeViewSite();
};
});