mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Refactor switch statement
This commit is contained in:
parent
0037056ee8
commit
374344d0e2
@ -913,20 +913,12 @@ function constructInput(name, parameters, options) {
|
|||||||
func = constructCheckboxInput;
|
func = constructCheckboxInput;
|
||||||
break;
|
break;
|
||||||
case 'string':
|
case 'string':
|
||||||
func = constructTextInput;
|
|
||||||
break;
|
|
||||||
case 'url':
|
case 'url':
|
||||||
func = constructTextInput;
|
|
||||||
break;
|
|
||||||
case 'email':
|
case 'email':
|
||||||
func = constructTextInput;
|
func = constructTextInput;
|
||||||
break;
|
break;
|
||||||
case 'integer':
|
case 'integer':
|
||||||
func = constructNumberInput;
|
|
||||||
break;
|
|
||||||
case 'float':
|
case 'float':
|
||||||
func = constructNumberInput;
|
|
||||||
break;
|
|
||||||
case 'decimal':
|
case 'decimal':
|
||||||
func = constructNumberInput;
|
func = constructNumberInput;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user