Verified Commit 52c4c838 authored by uncol's avatar uncol
Browse files

noc/noc#1493

parent d6fbc14b
Pipeline #29919 passed with stages
in 1 minute and 36 seconds
......@@ -642,7 +642,7 @@ Ext.define("NOC.inv.map.MapPanel", {
};
// Get nodes position
Ext.each(me.graph.getElements(), function(e) {
if('wrench' !== e.get('data').type) {
if('wrench' !== e.get('data').type && 'badge' !== e.get('data').type) {
var v = e.get("id").split(":");
r.nodes.push({
type: v[0],
......@@ -807,6 +807,9 @@ Ext.define("NOC.inv.map.MapPanel", {
attrs: {
body: {strokeWidth: 0.5},
text: {text: String.fromCharCode(config.code), 'font-family': 'FontAwesome', 'font-size': size / 1.7}
},
data: {
type: "badge"
}
});
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment