mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
cleanup
This commit is contained in:
@@ -149,6 +149,5 @@ TaskStatusResponse = Union[
|
||||
|
||||
class BulkOperationResponse(TypedDict):
|
||||
successful_items: int
|
||||
# IDs that failed to delete, so the client can keep them selected for retry.
|
||||
failed_ids: list[int]
|
||||
errors: list[str]
|
||||
|
||||
@@ -117,10 +117,7 @@ async function deleteRoms() {
|
||||
}
|
||||
}
|
||||
romsStore.resetSelection();
|
||||
// Drop the deleted ROMs from the v2 gallery selection too — otherwise
|
||||
// the SelectionBar stays open pointing at rows that no longer exist,
|
||||
// and re-running an action 404s. removeIds only touches the deleted
|
||||
// subset, so a partial (or failed) delete keeps the rest selected.
|
||||
// Drop the deleted ROMs from the gallery selection
|
||||
gallerySelectionStore.removeIds(deletedRoms.map((rom) => rom.id));
|
||||
romsStore.remove(deletedRoms);
|
||||
galleryRomsStore.remove(deletedRoms);
|
||||
|
||||
Reference in New Issue
Block a user