default cipher type data objects

This commit is contained in:
Kyle Spearrin 2017-10-25 15:45:33 -04:00
parent df94d81d07
commit cae8beaa8f
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,9 @@
$scope.selectedType = constants.cipherType.login.toString(); $scope.selectedType = constants.cipherType.login.toString();
$scope.cipher = { $scope.cipher = {
type: constants.cipherType.login, type: constants.cipherType.login,
login: {},
identity: {},
card: {},
secureNote: { secureNote: {
type: '0' type: '0'
} }

View File

@ -11,6 +11,9 @@
folderId: selectedFolder ? selectedFolder.id : null, folderId: selectedFolder ? selectedFolder.id : null,
favorite: checkedFavorite === true, favorite: checkedFavorite === true,
type: constants.cipherType.login, type: constants.cipherType.login,
login: {},
identity: {},
card: {},
secureNote: { secureNote: {
type: '0' type: '0'
} }