summaryrefslogtreecommitdiff
path: root/js/PrefFeedTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-08 16:10:37 +0300
committerAndrew Dolgov <[email protected]>2018-12-08 16:10:37 +0300
commitcf1ef002bc6b419385f41b12497318d90c088921 (patch)
tree35cbf5c780d32a7df7a4a04d0ed6e63718169272 /js/PrefFeedTree.js
parentb96beeeda772fe087471fc9de4857702b6abe096 (diff)
show disabled feeds in pref feed tree, use opacity instead of fixed gray color
Diffstat (limited to 'js/PrefFeedTree.js')
-rw-r--r--js/PrefFeedTree.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js
index 5639e3604..c2c7751bf 100644
--- a/js/PrefFeedTree.js
+++ b/js/PrefFeedTree.js
@@ -76,8 +76,12 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
this.tree.model.store.save();
},
getRowClass: function (item, opened) {
- return (!item.error || item.error == '') ? "dijitTreeRow" :
+ let rc = (!item.error || item.error == '') ? "dijitTreeRow" :
"dijitTreeRow Error";
+
+ if (item.updates_disabled > 0) rc += " UpdatesDisabled";
+
+ return rc;
},
getIconClass: function (item, opened) {
return (!item || this.model.store.getValue(item, 'type') == 'category') ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feed-icon";