mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(mobile): trash provider (#16219)
* refactor(mobile): trash provider * refactor(mobile): trash provider * pr feedback
This commit is contained in:
parent
34b88bb47a
commit
17a2043e76
8 changed files with 115 additions and 164 deletions
|
|
@ -49,7 +49,8 @@ class GalleryAppBar extends ConsumerWidget {
|
|||
}
|
||||
|
||||
handleRestore(Asset asset) async {
|
||||
final result = await ref.read(trashProvider.notifier).restoreAsset(asset);
|
||||
final result =
|
||||
await ref.read(trashProvider.notifier).restoreAssets([asset]);
|
||||
|
||||
if (result && context.mounted) {
|
||||
ImmichToast.show(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue