Fixing last remaining processes
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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 })
|
||||
|
||||
@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user