summaryrefslogtreecommitdiff
path: root/js/PrefLabelTree.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/PrefLabelTree.js')
-rw-r--r--js/PrefLabelTree.js26
1 files changed, 14 insertions, 12 deletions
diff --git a/js/PrefLabelTree.js b/js/PrefLabelTree.js
index 45c96af16..988e313b0 100644
--- a/js/PrefLabelTree.js
+++ b/js/PrefLabelTree.js
@@ -18,18 +18,21 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
const bare_id = this.model.store.getValue(args.item, 'bare_id');
if (type == 'label') {
- const span = dojo.doc.createElement('span');
- span.innerHTML = 'α';
- span.className = 'labelColorIndicator';
- span.id = 'LICID-' + bare_id;
+ const label = dojo.doc.createElement('i');
+ //const fg_color = args.item.fg_color[0];
+ const bg_color = String(args.item.bg_color);
- span.setStyle({
- color: fg_color,
- backgroundColor: bg_color});
+ label.className = "material-icons icon-label";
+ label.id = 'icon-label-' + String(args.item.bare_id);
+ label.innerHTML = "label";
+ label.setStyle({
+ color: bg_color,
+ });
- tnode._labelIconNode = span;
+ domConstruct.place(label, tnode.iconNode, 'before');
- domConstruct.place(tnode._labelIconNode, tnode.labelNode, 'before');
+ //tnode._labelIconNode = span;
+ //domConstruct.place(tnode._labelIconNode, tnode.labelNode, 'before');
}
return tnode;
@@ -80,11 +83,10 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
color = bg;
}
- const e = $("LICID-" + id);
+ const e = $("icon-label-" + id);
if (e) {
- if (fg) e.style.color = fg;
- if (bg) e.style.backgroundColor = bg;
+ if (bg) e.style.color = bg;
}
const query = {