mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Adds fallback value if status code color is not defined
This commit is contained in:
parent
96565325a8
commit
9c3b04f771
@ -27,6 +27,9 @@ function {{ label }}StatusDisplay(key, options={}) {
|
|||||||
label = {{ label }}Codes[key].label;
|
label = {{ label }}Codes[key].label;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fallback option for label
|
||||||
|
label = label || 'bg-dark';
|
||||||
|
|
||||||
if (value == null || value.length == 0) {
|
if (value == null || value.length == 0) {
|
||||||
value = key;
|
value = key;
|
||||||
label = '';
|
label = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user