Collecting output from pip upgrade and returning to user

This commit is contained in:
James Barnsley
2018-04-21 21:59:40 +12:00
parent 22ba55004e
commit fa17dafe86
10 changed files with 112 additions and 69 deletions

View File

@ -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'
}
}

View File

@ -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':