Loading before asset - ensures force reload 'feels' right
This commit is contained in:
@ -164596,16 +164596,16 @@ var Album = /*#__PURE__*/function (_React$Component) {
|
||||
var tracks = _this$props$album.tracks;
|
||||
var filter = _this.state.filter;
|
||||
|
||||
if (!album) {
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "Album"
|
||||
});
|
||||
}
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "Album"
|
||||
});
|
||||
}
|
||||
|
||||
if (!album) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_ErrorMessage__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
type: "not-found",
|
||||
title: "Not found",
|
||||
@ -165501,16 +165501,16 @@ var Artist = /*#__PURE__*/function (_React$Component) {
|
||||
artist = _this$props8.artist,
|
||||
history = _this$props8.history;
|
||||
|
||||
if (!artist) {
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "Artist"
|
||||
});
|
||||
}
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "Artist"
|
||||
});
|
||||
}
|
||||
|
||||
if (!artist) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_ErrorMessage__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
||||
type: "not-found",
|
||||
title: "Not found",
|
||||
@ -166965,16 +166965,16 @@ var Playlist = /*#__PURE__*/function (_React$Component) {
|
||||
sort_reverse = _this$props10.sort_reverse;
|
||||
var filter = _this.state.filter;
|
||||
|
||||
if (!playlist) {
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "Playlist"
|
||||
});
|
||||
}
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "Playlist"
|
||||
});
|
||||
}
|
||||
|
||||
if (!playlist) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_ErrorMessage__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
type: "not-found",
|
||||
title: "Not found",
|
||||
@ -170392,21 +170392,21 @@ var User = /*#__PURE__*/function (_React$Component) {
|
||||
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
||||
var _this$props4 = _this.props,
|
||||
uri = _this$props4.uri,
|
||||
isLoading = _this$props4.isLoading,
|
||||
loading = _this$props4.loading,
|
||||
user = _this$props4.user,
|
||||
playlists = _this$props4.playlists,
|
||||
slim_mode = _this$props4.slim_mode;
|
||||
|
||||
if (!user) {
|
||||
if (isLoading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "User"
|
||||
});
|
||||
}
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_Loader__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
||||
body: true,
|
||||
loading: true,
|
||||
"data-qa-node": "Loader",
|
||||
"data-qa-file": "User"
|
||||
});
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_ErrorMessage__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
||||
type: "not-found",
|
||||
title: "Not found",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user