Skip to content

Commit d4e40a5

Browse files
committed
fix(form) Allow for Boolean or boolean. Build.
1 parent f9e34bb commit d4e40a5

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

dist/forms-angular-with-bs2.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular-with-bs3.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ var fng;
19741974
}
19751975
}
19761976
}
1977-
else if (mongooseType.instance === 'Boolean') {
1977+
else if (mongooseType.instance.toLowerCase() === 'boolean') {
19781978
formInstructions.type = 'checkbox';
19791979
}
19801980
else if (mongooseType.instance === 'Number') {

dist/forms-angular.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/services/form-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ module fng.services {
344344
formInstructions.add = 'ui-date ui-date-format datepicker-popup-fix ';
345345
}
346346
}
347-
} else if (mongooseType.instance === 'Boolean') {
347+
} else if (mongooseType.instance.toLowerCase() === 'boolean') {
348348
formInstructions.type = 'checkbox';
349349
} else if (mongooseType.instance === 'Number') {
350350
formInstructions.type = 'number';

0 commit comments

Comments
 (0)