2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-11 07:24:15 +00:00

Improvements for build output completion

- Check if the output is fully allocated (throw error if not)
- Reload tables after actions performed
This commit is contained in:
Oliver
2021-10-17 21:37:10 +11:00
parent bd7fef720d
commit 542b4113a1
4 changed files with 46 additions and 7 deletions

View File

@ -1843,6 +1843,8 @@ function constructInput(name, parameters, options) {
case 'candy':
func = constructCandyInput;
break;
case 'raw':
func = constructRawInput;
default:
// Unsupported field type!
break;
@ -2086,6 +2088,17 @@ function constructCandyInput(name, parameters) {
}
/*
* Construct a "raw" field input
* No actual field data!
*/
function constructRawInput(name, parameters) {
return parameters.html;
}
/*
* Construct a 'help text' div based on the field parameters
*