feat(mobile): edit date time action

This commit is contained in:
wuzihao051119
2025-07-19 18:26:20 +08:00
parent c7853fbe9d
commit d0e0c24690
12 changed files with 177 additions and 6 deletions
@@ -288,6 +288,28 @@ class ActionNotifier extends Notifier<void> {
}
}
Future<ActionResult?> editDateTime(
ActionSource source,
BuildContext context,
) async {
final ids = _getOwnedRemoteIdsForSource(source);
try {
final isEdited = await _service.editDateTime(ids, context);
if (!isEdited) {
return null;
}
return ActionResult(count: ids.length, success: true);
} catch (error, stack) {
_logger.severe('Failed to edit date and time for assets', error, stack);
return ActionResult(
count: ids.length,
success: false,
error: error.toString(),
);
}
}
Future<ActionResult> removeFromAlbum(
ActionSource source,
String albumId,