mirror of
https://github.com/immich-app/immich.git
synced 2025-01-19 18:26:46 +01:00
Add text notifying user that no asset is found (#2400)
This commit is contained in:
parent
053104fc50
commit
5885ec8e65
2 changed files with 21 additions and 13 deletions
|
@ -111,16 +111,20 @@ class ArchivePage extends HookConsumerWidget {
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: buildAppBar(),
|
appBar: buildAppBar(),
|
||||||
body: Stack(
|
body: archivedAssets.value.isEmpty
|
||||||
children: [
|
? const Center(
|
||||||
ImmichAssetGrid(
|
child: Text('No archived assets found.'),
|
||||||
assets: archivedAssets.value,
|
)
|
||||||
listener: selectionListener,
|
: Stack(
|
||||||
selectionActive: selectionEnabledHook.value,
|
children: [
|
||||||
),
|
ImmichAssetGrid(
|
||||||
if (selectionEnabledHook.value) buildBottomBar()
|
assets: archivedAssets.value,
|
||||||
],
|
listener: selectionListener,
|
||||||
),
|
selectionActive: selectionEnabledHook.value,
|
||||||
|
),
|
||||||
|
if (selectionEnabledHook.value) buildBottomBar()
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,9 +26,13 @@ class FavoritesPage extends HookConsumerWidget {
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: buildAppBar(),
|
appBar: buildAppBar(),
|
||||||
body: ImmichAssetGrid(
|
body: ref.watch(favoriteAssetProvider).isEmpty
|
||||||
assets: ref.watch(favoriteAssetProvider),
|
? const Center(
|
||||||
),
|
child: Text('No favorite assets found.'),
|
||||||
|
)
|
||||||
|
: ImmichAssetGrid(
|
||||||
|
assets: ref.watch(favoriteAssetProvider),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue