diff options
| author | fox <fox@noreply.tt-rss.org> | 2023-03-07 20:13:10 +0300 |
|---|---|---|
| committer | fox <fox@noreply.tt-rss.org> | 2023-03-07 20:13:10 +0300 |
| commit | cddbf5bf5a7e2c433275a3bec089f318d4f211af (patch) | |
| tree | 8963be1f66c848638dfea5c68c09ac29915bc715 /js/FeedTree.js | |
| parent | c4026b408b824769de6152d0c3bf0eb504a1e935 (diff) | |
| parent | b14a8a76ebdf41adc7b8e0e95db1decb1a3d95f6 (diff) | |
Merge pull request 'Replace special feed and category numbers with constants.' (#104) from wn/tt-rss:feature/special-feed-and-cat-consts into master
Reviewed-on: https://dev.tt-rss.org/tt-rss/tt-rss/pulls/104
Diffstat (limited to 'js/FeedTree.js')
| -rwxr-xr-x | js/FeedTree.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/FeedTree.js b/js/FeedTree.js index f6c44a71e..3eaa61263 100755 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -225,8 +225,8 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dojo/_base/array", "dojo/co 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 >= App.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 >= App.LABEL_BASE_INDEX && item.bare_id < 0 && !is_cat || item.bare_id == Feeds.FEED_ARCHIVED && !is_cat) rc += " Special"; + if (item.bare_id == Feeds.CATEGORY_SPECIAL && is_cat) rc += " AlwaysVisible"; if (item.bare_id < App.LABEL_BASE_INDEX) rc += " Label"; return rc; |