State: put temp state directly in state, saved in state.saved

This commit is contained in:
DC
2016-03-05 15:46:57 -08:00
parent 5b383d3ed0
commit 098827ec78
5 changed files with 80 additions and 81 deletions

View File

@@ -23,12 +23,12 @@ function Header (state, dispatch) {
function getTitle () {
if (process.platform === 'darwin') {
return hx`<div class="title">${state.temp.title}</div>`
return hx`<div class="title">${state.title}</div>`
}
}
function plusButton () {
if (state.temp.url !== '/player') {
if (state.url !== '/player') {
return hx`<i class="icon add" onclick=${onAddTorrent}>add</i>`
}
}