From: Thibaut Girka Date: Wed, 12 Dec 2018 17:06:00 +0000 (+0100) Subject: [Glitch] Make account media gallery more consistent with account timeline X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=2d097c10d008780c56798c444ae4d18414310bdb;p=mastodon.git [Glitch] Make account media gallery more consistent with account timeline Display “load more” more consistently, add a loading indicator on first load. --- diff --git a/app/javascript/flavours/glitch/features/account_gallery/index.js b/app/javascript/flavours/glitch/features/account_gallery/index.js index 0405af2c3..a77db1c1b 100644 --- a/app/javascript/flavours/glitch/features/account_gallery/index.js +++ b/app/javascript/flavours/glitch/features/account_gallery/index.js @@ -107,8 +107,8 @@ export default class AccountGallery extends ImmutablePureComponent { ); } - if (!isLoading && medias.size > 0 && hasMore) { - loadOlder = ; + if (hasMore) { + loadOlder = ; } return ( @@ -116,10 +116,10 @@ export default class AccountGallery extends ImmutablePureComponent { -
+
-
+
{medias.map((media, index) => media === null ? ( + + {isLoading && medias.size === 0 && ( +
+ +
+ )}