Collecting output from pip upgrade and returning to user
This commit is contained in:
@ -20,15 +20,15 @@ export function connecting(){
|
||||
}
|
||||
}
|
||||
|
||||
export function upgradeStarted(){
|
||||
export function upgrading(){
|
||||
return {
|
||||
type: 'MOPIDY_UPGRADE_STARTED'
|
||||
type: 'MOPIDY_UPGRADING'
|
||||
}
|
||||
}
|
||||
|
||||
export function restartStarted(){
|
||||
export function restarting(){
|
||||
return {
|
||||
type: 'MOPIDY_RESTART_STARTED'
|
||||
type: 'MOPIDY_RESTARTING'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -8,10 +8,10 @@ export default function reducer(mopidy = {}, action){
|
||||
case 'MOPIDY_CONNECTING':
|
||||
return Object.assign({}, mopidy, { connected: false, connecting: true });
|
||||
|
||||
case 'MOPIDY_RESTART_STARTED':
|
||||
case 'MOPIDY_RESTARTING':
|
||||
return Object.assign({}, mopidy, { restarting: true });
|
||||
|
||||
case 'MOPIDY_UPGRADE_STARTED':
|
||||
case 'MOPIDY_UPGRADING':
|
||||
return Object.assign({}, mopidy, { upgrading: true });
|
||||
|
||||
case 'MOPIDY_CONNECTED':
|
||||
|
||||
Reference in New Issue
Block a user