mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
vault tuneups
This commit is contained in:
@@ -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' });
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user