Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #8785: Improve Script field behavior in passwords #1154

Conversation

VinceMacBuche
Copy link
Member


$scope.$watch('action',updateResult);
$scope.$watch('newPassword.password',updateResult);
$scope.$watch('newPassword.hash',updateResult);

function updateResult () {
// Keep and delete, use current password as base
var result = $scope.current
var result = angular.copy($scope.current)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing ; there

@ncharles
Copy link
Member

Appart from the two missing ;, this is awesome

@ncharles
Copy link
Member

I've been testing it, and when we fill a password value, then click "add another", the field is emptied (looks like all the password fields get back their original value in this case)
Please fix this before we can merge this PR

@VinceMacBuche
Copy link
Member Author

Commit modified

@VinceMacBuche VinceMacBuche force-pushed the ust_8785/improve_script_field_behavior_in_passwords branch from 6d1f502 to 99b5b30 Compare July 29, 2016 09:52
@ncharles
Copy link
Member

Awesome!

@ncharles
Copy link
Member

This is good for me (except the missing ; )
so you can add them, and self merge

@VinceMacBuche
Copy link
Member Author

Commit modified

@VinceMacBuche VinceMacBuche force-pushed the ust_8785/improve_script_field_behavior_in_passwords branch from 99b5b30 to 5ad4c2e Compare July 29, 2016 10:08
@VinceMacBuche
Copy link
Member Author

Commit modified

@VinceMacBuche VinceMacBuche force-pushed the ust_8785/improve_script_field_behavior_in_passwords branch from 5ad4c2e to 41a18ac Compare July 29, 2016 10:09
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 41a18ac into Normation:branches/rudder/3.1 Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants