Skip to content

Commit c02d928

Browse files
mkanzlerloocars
authored andcommitted
Fix: ElementHover.js - Defaults: unset optional state macros collapse to an empty string instead of rendering as literal [obj_*] tokens
1 parent df10805 commit c02d928

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

share/frontend/nagvis-js/js/ElementHover.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,16 @@ const ElementHover = Element.extend({
506506
},
507507

508508
replaceDynamicMacros: function (template_html) {
509-
const oMacros = {};
509+
// Defaults: unset optional state macros collapse to an empty string
510+
// instead of rendering as literal [obj_*] tokens.
511+
const oMacros = {
512+
obj_summary_acknowledged: "",
513+
obj_acknowledged: "",
514+
obj_summary_in_downtime: "",
515+
obj_in_downtime: "",
516+
obj_summary_stale: "",
517+
obj_stale: ""
518+
};
510519

511520
if (g_view.type === "map") oMacros.map_name = oPageProperties.map_name;
512521

0 commit comments

Comments
 (0)