mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: finish drift locked page (#20013)
* feat: overlay mechanism * handle merged asset local id extraction * locked view asset viewer actions * pr feedback
This commit is contained in:
parent
dcfe8d5ade
commit
5d244c6fec
11 changed files with 143 additions and 26 deletions
|
|
@ -83,7 +83,10 @@ class ActionService {
|
|||
);
|
||||
}
|
||||
|
||||
Future<void> moveToLockFolder(List<String> remoteIds) async {
|
||||
Future<void> moveToLockFolder(
|
||||
List<String> remoteIds,
|
||||
List<String> localIds,
|
||||
) async {
|
||||
await _assetApiRepository.updateVisibility(
|
||||
remoteIds,
|
||||
AssetVisibilityEnum.locked,
|
||||
|
|
@ -92,6 +95,15 @@ class ActionService {
|
|||
remoteIds,
|
||||
AssetVisibility.locked,
|
||||
);
|
||||
|
||||
// Ask user if they want to delete local copies
|
||||
if (localIds.isNotEmpty) {
|
||||
final deletedIds = await _assetMediaRepository.deleteAll(localIds);
|
||||
|
||||
if (deletedIds.isNotEmpty) {
|
||||
await _localAssetRepository.delete(deletedIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> removeFromLockFolder(List<String> remoteIds) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue