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:
@@ -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();
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user