1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

vault tuneups

This commit is contained in:
Kyle Spearrin
2016-09-09 23:00:11 -04:00
parent 59f72d6e09
commit 32b2eed66c
5 changed files with 98 additions and 139 deletions

View File

@@ -1,12 +1,12 @@
angular
.module('bit.vault')
.controller('vaultAddSiteController', function ($scope, siteService, cipherService) {
.controller('vaultAddSiteController', function ($scope, $state, siteService, cipherService) {
$scope.site = {
folderId: null
};
$scope.createSite = function (model) {
$scope.save = function (model) {
cipherService.encryptSite(model, function (siteModel) {
var site = new Site(siteModel, true);
siteService.saveWithServer(site, function () {
@@ -16,6 +16,6 @@
};
$scope.close = function () {
$scope.parentScope.closeAddSite();
$state.go('tabs.vault', { animation: 'out-slide-down' });
};
});