System script, implement deley to alert other users; UI
This commit is contained in:
@ -14,6 +14,24 @@ export function connect(){
|
||||
}
|
||||
}
|
||||
|
||||
export function connecting(){
|
||||
return {
|
||||
type: 'MOPIDY_CONNECTING'
|
||||
}
|
||||
}
|
||||
|
||||
export function upgradeStarted(){
|
||||
return {
|
||||
type: 'MOPIDY_UPGRADE_STARTED'
|
||||
}
|
||||
}
|
||||
|
||||
export function restartStarted(){
|
||||
return {
|
||||
type: 'MOPIDY_RESTART_STARTED'
|
||||
}
|
||||
}
|
||||
|
||||
export function disconnect(){
|
||||
return {
|
||||
type: 'MOPIDY_DISCONNECT'
|
||||
|
||||
@ -8,10 +8,10 @@ export default function reducer(mopidy = {}, action){
|
||||
case 'MOPIDY_CONNECTING':
|
||||
return Object.assign({}, mopidy, { connected: false, connecting: true });
|
||||
|
||||
case 'PUSHER_RESTART_MOPIDY':
|
||||
return Object.assign({}, mopidy, { connected: false, connecting: true, restarting: true });
|
||||
case 'MOPIDY_RESTART_STARTED':
|
||||
return Object.assign({}, mopidy, { restarting: true });
|
||||
|
||||
case 'PUSHER_START_UPGRADE':
|
||||
case 'MOPIDY_UPGRADE_STARTED':
|
||||
return Object.assign({}, mopidy, { upgrading: true });
|
||||
|
||||
case 'MOPIDY_CONNECTED':
|
||||
|
||||
Reference in New Issue
Block a user