Merge pull request #2319 from SchrodingersGat/returned-status
Adds fallback value if status code color is not defined
This commit is contained in:
commit
8a879832ee
|
|
@ -27,6 +27,9 @@ function {{ label }}StatusDisplay(key, options={}) {
|
|||
label = {{ label }}Codes[key].label;
|
||||
}
|
||||
|
||||
// Fallback option for label
|
||||
label = label || 'bg-dark';
|
||||
|
||||
if (value == null || value.length == 0) {
|
||||
value = key;
|
||||
label = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue