app/html/sideNav/sideNavDiscovery.jsView |
---|
45 | 45 | if (location.page) { |
46 | 46 | if (location.page.match(/^blog/)) return true |
47 | 47 | if (location.page.match(/^thread/)) return true |
48 | 48 | if (location.page.match(/^user/)) return true |
| 49 | + if (location.page.match(/^channel/)) return true |
49 | 50 | } |
50 | 51 | if (location.key) { |
51 | 52 | return true |
52 | 53 | } |
137 | 138 | imageEl: h('i', [ |
138 | 139 | h('img', { src: path.join(__dirname, '../../../assets', 'discover.png') }) |
139 | 140 | ]), |
140 | 141 | label: "My subscriptions", |
141 | | - selected: isDiscoverSideNav(location), |
| 142 | + selected: isDiscoverLocation(location), |
142 | 143 | location: { page: 'channelSubscriptions', scope: 'user' }, |
143 | 144 | }), |
144 | 145 | |
145 | 146 | |
147 | 148 | imageEl: h('i', [ |
148 | 149 | h('img', { src: path.join(__dirname, '../../../assets', 'discover.png') }) |
149 | 150 | ]), |
150 | 151 | label: "Friends subscriptions", |
151 | | - selected: isDiscoverSideNav(location), |
| 152 | + selected: isDiscoverLocation(location), |
152 | 153 | location: { page: 'channelSubscriptions', scope: 'friends' }, |
153 | 154 | }) |
154 | 155 | ] |
155 | 156 | |