Skip to content

Commit

Permalink
chore: revert multiselectgrid loading status
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Dec 16, 2024
1 parent 114bd9d commit b126a79
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions mobile/lib/widgets/asset_grid/multiselect_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -434,21 +434,26 @@ class MultiselectGrid extends HookConsumerWidget {
bottom: false,
child: Stack(
children: [
ImmichAssetGrid(
key: const ValueKey("immichAssetGrid"),
renderList: renderList.value ?? RenderList([], null, []),
listener: selectionListener,
selectionActive: selectionEnabledHook.value,
onRefresh: onRefresh == null
? null
: wrapLongRunningFun(
onRefresh!,
showOverlay: false,
),
topWidget: topWidget,
showStack: stackEnabled,
),
const MultiselectGridStatusIndicator(),
ref.watch(renderListProvider).when(
data: (data) => data.isEmpty &&
(buildLoadingIndicator != null || topWidget == null)
? (buildLoadingIndicator ?? buildEmptyIndicator)()
: ImmichAssetGrid(
renderList: data,
listener: selectionListener,
selectionActive: selectionEnabledHook.value,
onRefresh: onRefresh == null
? null
: wrapLongRunningFun(
onRefresh!,
showOverlay: false,
),
topWidget: topWidget,
showStack: stackEnabled,
),
error: (error, _) => Center(child: Text(error.toString())),
loading: buildLoadingIndicator ?? buildDefaultLoadingIndicator,
),
if (selectionEnabledHook.value)
ControlBottomAppBar(
key: const ValueKey("controlBottomAppBar"),
Expand Down

0 comments on commit b126a79

Please sign in to comment.