1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

pass folderId to add site

This commit is contained in:
Kyle Spearrin
2016-12-08 19:24:06 -05:00
parent e414dd1867
commit 61f205b4b8
3 changed files with 9 additions and 9 deletions

View File

@@ -4,10 +4,11 @@
.controller('vaultAddSiteController', function ($scope, $state, $stateParams, siteService, folderService,
cryptoService, $q, toastr, utilsService, $analytics, i18nService) {
$scope.i18n = i18nService;
var from = $stateParams.from;
var from = $stateParams.from,
folderId = $stateParams.folderId;
$scope.site = {
folderId: null,
folderId: folderId,
name: $stateParams.name,
uri: $stateParams.uri
};
@@ -53,7 +54,8 @@
}
else if (from === 'folder') {
$state.go('viewFolder', {
animation: 'out-slide-down'
animation: 'out-slide-down',
folderId: folderId
});
}
else {