Refine input styling and form registration

This commit is contained in:
gconsidine
2017-05-19 17:40:52 -04:00
parent c8757a5ab0
commit c41dff7996
18 changed files with 150 additions and 73 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ function CredentialTypeModel (BaseModel) {
this.mergeInputProperties = type => {
return type.inputs.fields.map(field => {
if (!type.inputs.required || type.inputs.required.indexOf(field.id) !== -1) {
if (!type.inputs.required || type.inputs.required.indexOf(field.id) === -1) {
field.required = false;
} else {
field.required = true;