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

@@ -42,7 +42,7 @@ function TorrentList (state, dispatch) {
}
})(),
(function () {
if (state.view.airplay) {
if (state.view.devices.airplay) {
return h('i.btn.icon.airplay', {
className: !torrent.ready ? 'disabled' : '',
onclick: openAirplay