mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: drift description editor (#20383)
* feat: drift description editor * chore: use focus node * chore: code review fixes * chore: move description update to action.service * refactor * refactor --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
58521c9efb
commit
290e325c5c
6 changed files with 113 additions and 0 deletions
|
|
@ -170,6 +170,14 @@ class ActionService {
|
|||
return removedCount;
|
||||
}
|
||||
|
||||
Future<bool> updateDescription(String assetId, String description) async {
|
||||
// update remote first, then local to ensure consistency
|
||||
await _assetApiRepository.updateDescription(assetId, description);
|
||||
await _remoteAssetRepository.updateDescription(assetId, description);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Future<void> stack(String userId, List<String> remoteIds) async {
|
||||
final stack = await _assetApiRepository.stack(remoteIds);
|
||||
await _remoteAssetRepository.stack(userId, stack);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue