cipher rename on password generator page

This commit is contained in:
Kyle Spearrin 2017-10-16 15:21:51 -04:00
parent 48f02cffe9
commit e643b1cf7e
1 changed files with 7 additions and 7 deletions

View File

@ -70,10 +70,10 @@
$analytics.eventTrack('Selected Generated Password'); $analytics.eventTrack('Selected Generated Password');
if (addState) { if (addState) {
addState.login.password = $scope.password; addState.cipher.login.password = $scope.password;
} }
else if (editState) { else if (editState) {
editState.login.password = $scope.password; editState.cipher.login.password = $scope.password;
} }
dismiss(); dismiss();
@ -81,18 +81,18 @@
function dismiss() { function dismiss() {
if (addState) { if (addState) {
$state.go('addLogin', { $state.go('addCipher', {
animation: 'out-slide-down', animation: 'out-slide-down',
from: addState.from, from: addState.from,
login: addState.login cipher: addState.cipher
}); });
} }
else if (editState) { else if (editState) {
$state.go('editLogin', { $state.go('editCipher', {
animation: 'out-slide-down', animation: 'out-slide-down',
login: editState.login, cipher: editState.cipher,
fromView: editState.fromView, fromView: editState.fromView,
loginId: editState.loginId, cipherId: editState.cipherId,
from: editState.from from: editState.from
}); });
} }