mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-19 13:18:16 +02:00
Merge pull request #118 from R0m1k3/antigravity
feat: add comprehensive dashboard page with todo management, RSS feed…
This commit is contained in:
5 files changed
+129
-30
No files matched your search
@@ -5,6 +5,7 @@ export interface Todo {
|
||||
text: string;
|
||||
completed: boolean;
|
||||
priority?: boolean;
|
||||
in_progress?: boolean;
|
||||
due_date?: string;
|
||||
created_at?: string;
|
||||
}
|
||||
@@ -81,6 +82,16 @@ class TodosService {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async toggleInProgress(todoId: number): Promise<boolean> {
|
||||
try {
|
||||
await axios.patch(`${this.baseURL}/${todoId}/in-progress`, {}, this.getAuthHeader());
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.error('Error toggling in progress status:', error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default new TodosService();
|
||||
Reference in new issue
Block a user