diff options
author | Andrew Dolgov <[email protected]> | 2020-02-22 16:44:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-02-22 16:44:31 +0300 |
commit | 788ea95fbda1939d49472bdf76ccea5f0d193c07 (patch) | |
tree | 7e428b19f409ab1131a806f68e21fc426855449f /js/FeedTree.js | |
parent | 4ab3854aede3882779138d91594b588e1a38c70e (diff) |
feed tree: do not mark Labels as Special
Diffstat (limited to 'js/FeedTree.js')
-rwxr-xr-x | js/FeedTree.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/FeedTree.js b/js/FeedTree.js index a1a48d586..85892b3d9 100755 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -33,7 +33,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"], const id = args.item.id[0]; const bare_id = parseInt(id.substr(id.indexOf(':')+1)); - if (bare_id < _label_base_index) { + if (bare_id < LABEL_BASE_INDEX) { const label = dojo.create('i', { className: "material-icons icon icon-label", innerHTML: "label" }); //const fg_color = args.item.fg_color[0]; @@ -163,8 +163,9 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"], if (item.auxcounter > 0) rc += " Has_Aux"; if (item.markedcounter > 0) rc += " Has_Marked"; if (item.updates_disabled > 0) rc += " UpdatesDisabled"; - if (item.bare_id < 0 && !is_cat || item.bare_id == 0 && !is_cat) rc += " Special"; + if (item.bare_id >= LABEL_BASE_INDEX && item.bare_id < 0 && !is_cat || item.bare_id == 0 && !is_cat) rc += " Special"; if (item.bare_id == -1 && is_cat) rc += " AlwaysVisible"; + if (item.bare_id < LABEL_BASE_INDEX) rc += " Label"; return rc; }, |