Add method to remove input data on credential type change

This commit is contained in:
gconsidine
2017-06-09 11:02:01 -04:00
parent 09ac71518e
commit 2b01c24dce
5 changed files with 55 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ function EditCredentialsController (models, $state) {
vm.form.save = data => {
data.user = me.getSelf().id;
credential.clearTypeInputs();
return credential.request('put', data);
};