More formatSimpleObjects
This commit is contained in:
@ -178218,6 +178218,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../locale */ "./src/js/locale/index.js");
|
||||
/* harmony import */ var _components_Loader__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../components/Loader */ "./src/js/components/Loader.js");
|
||||
/* harmony import */ var _util_selectors__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../util/selectors */ "./src/js/util/selectors.js");
|
||||
/* harmony import */ var _util_format__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../util/format */ "./src/js/util/format.js");
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
||||
@ -178280,6 +178281,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
||||
|
||||
|
||||
|
||||
|
||||
var SORT_KEY = 'library_albums';
|
||||
var processKeys = ['MOPIDY_GET_LIBRARY_ALBUMS', 'SPOTIFY_GET_LIBRARY_ALBUMS'];
|
||||
|
||||
@ -178346,11 +178348,7 @@ var Albums = /*#__PURE__*/function (_React$Component) {
|
||||
var showContextMenu = _this.props.uiActions.showContextMenu;
|
||||
showContextMenu({
|
||||
e: e,
|
||||
source: {
|
||||
uri: item === null || item === void 0 ? void 0 : item.uri,
|
||||
name: item === null || item === void 0 ? void 0 : item.name,
|
||||
type: 'album'
|
||||
},
|
||||
source: Object(_util_format__WEBPACK_IMPORTED_MODULE_18__["formatSimpleObject"])(item),
|
||||
uris: [item.uri],
|
||||
items: [item]
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
14
mopidy_iris/static/app.min.js
vendored
14
mopidy_iris/static/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -140,7 +140,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1638257330";
|
||||
var build = "1638344893";
|
||||
var version = "3.60.1";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -22,6 +22,7 @@ import {
|
||||
makeProvidersSelector,
|
||||
getSortSelector,
|
||||
} from '../../util/selectors';
|
||||
import { formatSimpleObject } from '../../util/format';
|
||||
|
||||
const SORT_KEY = 'library_albums';
|
||||
const processKeys = [
|
||||
@ -98,11 +99,7 @@ class Albums extends React.Component {
|
||||
|
||||
showContextMenu({
|
||||
e,
|
||||
source: {
|
||||
uri: item?.uri,
|
||||
name: item?.name,
|
||||
type: 'album',
|
||||
},
|
||||
source: formatSimpleObject(item),
|
||||
uris: [item.uri],
|
||||
items: [item],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user