Commit 71dbadafffeb775edb0eb90985feeac67464d988
fix side nav D:
mix irving committed on 2/5/2018, 6:57:52 AMParent: 72426349b2d15c7fbeb12396a535978cbcc0b4b0
Files changed
app/html/sideNav/sideNavDiscovery.js | changed |
app/html/sideNav/sideNavDiscovery.js | ||
---|---|---|
@@ -137,9 +137,9 @@ | ||
137 | 137 | imageEl: h('i', [ |
138 | 138 | h('img', { src: path.join(__dirname, '../../../assets', 'discover.png') }) |
139 | 139 | ]), |
140 | 140 | label: "My subscriptions", |
141 | - selected: isDiscoverSideNav(location), | |
141 | + selected: location.page === 'channelSubscriptions' && !location.scope, | |
142 | 142 | location: { page: 'channelSubscriptions', scope: 'user' }, |
143 | 143 | }), |
144 | 144 | |
145 | 145 | // Friends subscriptions |
@@ -147,9 +147,9 @@ | ||
147 | 147 | imageEl: h('i', [ |
148 | 148 | h('img', { src: path.join(__dirname, '../../../assets', 'discover.png') }) |
149 | 149 | ]), |
150 | 150 | label: "Friends subscriptions", |
151 | - selected: isDiscoverSideNav(location), | |
151 | + selected: location.page === 'channelSubscriptions' && location.scope === 'friends', | |
152 | 152 | location: { page: 'channelSubscriptions', scope: 'friends' }, |
153 | 153 | }) |
154 | 154 | ] |
155 | 155 |
Built with git-ssb-web