mirror of
https://github.com/immich-app/immich.git
synced 2026-08-02 00:48:08 -07:00
review changes
This commit is contained in:
@@ -47,12 +47,12 @@ class FavoriteAction extends AssetActionBuilder {
|
||||
final message = shouldFavorite
|
||||
? context.t.favorite_action_prompt(count: assetIds.length)
|
||||
: context.t.unfavorite_action_prompt(count: assetIds.length);
|
||||
final assertService = ref.read(assetServiceProvider);
|
||||
final assetService = ref.read(assetServiceProvider);
|
||||
final toastService = ref.read(toastServiceProvider);
|
||||
final clearSelection = ref.read(clearSelectionProvider(source));
|
||||
|
||||
try {
|
||||
await assertService.update(assetIds, isFavorite: .some(shouldFavorite));
|
||||
await assetService.update(assetIds, isFavorite: .some(shouldFavorite));
|
||||
toastService.success(message);
|
||||
clearSelection();
|
||||
} catch (error, stack) {
|
||||
|
||||
Reference in New Issue
Block a user