Fixing last remaining processes

This commit is contained in:
James Barnsley
2020-10-28 10:23:31 +13:00
parent 6cb01f222a
commit b1fa99cd79
3 changed files with 12 additions and 12 deletions

View File

@ -265,14 +265,14 @@ const MopidyMiddleware = (function () {
store.dispatch(uiActions.updateProcess(
processKey,
i18n(
'services.mopidy.searching',
{
provider: titleCase(uri_scheme.replace(':', '')),
type: requestType,
},
),
{
content: i18n(
'services.mopidy.searching',
{
provider: titleCase(uri_scheme.replace(':', '')),
type: requestType,
},
),
remaining: queue.length,
},
));
@ -1141,9 +1141,9 @@ const MopidyMiddleware = (function () {
if (queue.length) {
store.dispatch(uiActions.startProcess(
'MOPIDY_GET_SEARCH_RESULTS',
i18n('services.mopidy.searching'),
action.type,
{
content: i18n('services.mopidy.searching'),
total: queue.length,
remaining: queue.length,
},
@ -1734,7 +1734,7 @@ const MopidyMiddleware = (function () {
store.dispatch(
uiActions.updateProcess(
'MOPIDY_GET_LIBRARY_PLAYLISTS',
action.type,
{
total: playlist_uris.length,
remaining: playlist_uris.length,

View File

@ -628,7 +628,7 @@ const PusherMiddleware = (function () {
const notification_key = `command_${action.id}`;
if (action.notify) {
store.dispatch(uiActions.startProcess(notification_key, 'Running command'));
store.dispatch(uiActions.startProcess(notification_key, { content: 'Running command' }));
}
request(store, 'run_command', { id: action.id })

View File

@ -558,7 +558,7 @@ export function getMore(url, core_action = null, custom_action = null, extra_dat
export function getSearchResults({ type, term }, limit = 50, offset = 0) {
const processKey = 'SPOTIFY_GET_SEARCH_RESULTS';
return (dispatch, getState) => {
dispatch(uiActions.startProcess(processKey, 'Searching Spotify'));
dispatch(uiActions.startProcess(processKey, { content: 'Searching Spotify' }));
let typeString = type.replace(/s+$/, '');
if (typeString === 'all') {