mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
Add comments and minor changes from PR feedback
This commit is contained in:
@@ -70,6 +70,11 @@ function EditCredentialsController (models, $state, $scope, strings) {
|
||||
_key: 'inputs'
|
||||
};
|
||||
|
||||
/**
|
||||
* If a credential's `credential_type` is changed while editing, the inputs associated with
|
||||
* the old type need to be cleared before saving the inputs associated with the new type.
|
||||
* Otherwise inputs are merged together making the request invalid.
|
||||
*/
|
||||
vm.form.save = data => {
|
||||
data.user = me.getSelf().id;
|
||||
credential.unset('inputs');
|
||||
|
||||
Reference in New Issue
Block a user