Clear password when editing

This commit is contained in:
Jesús Ángel González 2018-07-03 13:07:55 +02:00
parent c56f1041c3
commit 2611eb4cc2

View File

@ -193,6 +193,9 @@ app.controller('settingsController', function ($scope, $rootScope, $http, $route
}
$scope.toggleEditor = entry => {
if($scope.formUpdate && $scope.formUpdate.password) {
$scope.formUpdate.password = '';
}
for(const key in $scope.showEditForm) {
if(entry && entry._id === key) continue;
$scope.showEditForm[key] = false;