move more state into state.view

This commit is contained in:
Feross Aboukhadijeh
2016-03-03 17:19:31 -08:00
parent db29ba7535
commit d72999df57
4 changed files with 24 additions and 34 deletions

View File

@@ -14,7 +14,7 @@ function Header (state, dispatch) {
}, 'chevron_right')
]),
(function () {
if (state.player !== 'local') {
if (state.url !== '/player') {
return h('.nav.right', [
h('i.icon.add', {
onclick: onAddTorrent