Dev #1

Merged
sandrodach merged 20 commits from dev into main 2026-10-25 01:03:04 +02:00
3 changed files with 2746 additions and 2 deletions
Showing only changes of commit 2504b48171 - Show all commits

No files matched your search

+2744
View File
File diff suppressed because it is too large. Load diff
@@ -179,7 +179,7 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
}) })
); );
await api.toggleListItem(activeList.id, item.id); await api.toggleListItem(activeList.id, item.id, nextCompleted);
onRefreshGlobal(); onRefreshGlobal();
}; };
+1 -1
View File
@@ -487,7 +487,7 @@ export const api = {
}); });
}, },
async toggleListItem(listId: string, itemId: string, isCompleted: boolean): Promise<ListItem> { async toggleListItem(listId: string, itemId: string, isCompleted?: boolean): Promise<ListItem> {
return request<ListItem>(`/api/v1/lists/${listId}/items/${itemId}`, { return request<ListItem>(`/api/v1/lists/${listId}/items/${itemId}`, {
method: 'PATCH', method: 'PATCH',
body: JSON.stringify({ isCompleted }), body: JSON.stringify({ isCompleted }),