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

@@ -33,11 +33,16 @@ function assignInputGroupValues (inputs) {
});
}
function clearTypeInputs () {
delete this.model.GET.inputs;
}
function CredentialModel (method, resource) {
BaseModel.call(this, 'credentials');
this.createFormSchema = createFormSchema.bind(this);
this.assignInputGroupValues = assignInputGroupValues.bind(this);
this.clearTypeInputs = clearTypeInputs.bind(this);
return this.request(method, resource)
.then(() => this);