fix: hide add button when on player page
This commit is contained in:
@@ -18,7 +18,7 @@ function Header (state, dispatch) {
|
|||||||
}, 'chevron_right')
|
}, 'chevron_right')
|
||||||
]),
|
]),
|
||||||
(function () {
|
(function () {
|
||||||
if (state.url !== '/player') {
|
if (state.view.url !== '/player') {
|
||||||
return h('.nav.right', [
|
return h('.nav.right', [
|
||||||
h('i.icon.add', {
|
h('i.icon.add', {
|
||||||
onclick: onAddTorrent
|
onclick: onAddTorrent
|
||||||
|
|||||||
Reference in New Issue
Block a user