mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 08:25:57 +00:00
label editor: fix changing tree color of edited item
This commit is contained in:
@@ -20,9 +20,10 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
|
|||||||
if (type == 'label') {
|
if (type == 'label') {
|
||||||
const label = dojo.doc.createElement('i');
|
const label = dojo.doc.createElement('i');
|
||||||
//const fg_color = args.item.fg_color[0];
|
//const fg_color = args.item.fg_color[0];
|
||||||
const bg_color = args.item.bg_color[0];
|
const bg_color = String(args.item.bg_color);
|
||||||
|
|
||||||
label.className = "material-icons icon-label";
|
label.className = "material-icons icon-label";
|
||||||
|
label.id = 'icon-label-' + String(args.item.bare_id);
|
||||||
label.innerHTML = "label";
|
label.innerHTML = "label";
|
||||||
label.setStyle({
|
label.setStyle({
|
||||||
color: bg_color,
|
color: bg_color,
|
||||||
@@ -82,11 +83,10 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
|
|||||||
color = bg;
|
color = bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
const e = $("LICID-" + id);
|
const e = $("icon-label-" + id);
|
||||||
|
|
||||||
if (e) {
|
if (e) {
|
||||||
if (fg) e.style.color = fg;
|
if (fg) e.style.color = bg;
|
||||||
if (bg) e.style.backgroundColor = bg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const query = {
|
const query = {
|
||||||
|
|||||||
Reference in New Issue
Block a user