Trial auto-loader based on Mopidy's __model__ response
This commit is contained in:
@ -119274,7 +119274,7 @@ var MopidyMiddleware = function () {
|
|||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
if (!response) return;
|
if (!response) return;
|
||||||
Object(_util_arrays__WEBPACK_IMPORTED_MODULE_7__["indexToArray"])(response).forEach(function (item) {
|
Object(_util_arrays__WEBPACK_IMPORTED_MODULE_7__["indexToArray"])(response).forEach(function (item) {
|
||||||
console.log(item);
|
store.dispatch(coreActions["load".concat(item.___model__)](item.uri));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1175,7 +1175,7 @@ const MopidyMiddleware = (function () {
|
|||||||
if (!response) return;
|
if (!response) return;
|
||||||
|
|
||||||
indexToArray(response).forEach((item) => {
|
indexToArray(response).forEach((item) => {
|
||||||
console.log(item);
|
store.dispatch(coreActions[`load${item.___model__}`](item.uri));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user