Localstorage woes again; multiple requests; creating common components

This commit is contained in:
James Barnsley
2016-10-18 21:57:29 +13:00
parent bd3ac79055
commit 51bf248ac9
14 changed files with 179 additions and 17 deletions

View File

@ -3,6 +3,13 @@
* Actions and Action Creators
**/
export function setConfig( config ){
return {
type: 'MOPIDY_SET_CONFIG',
config: config
}
}
export function connect(){
return {
type: 'MOPIDY_CONNECT'
@ -15,14 +22,6 @@ export function disconnect(){
}
}
export function setConfig( host, port ){
return {
type: 'MOPIDY_SET_CONFIG',
host: host,
port: port
}
}
export function changeTrack( tlid ){
return {
type: 'MOPIDY_CHANGE_TRACK',