mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-18 20:59:35 +02:00
feat: add comprehensive dashboard page with todo management, RSS feeds, calendar, and AI integration
This commit is contained in:
1 parent
4d29bc7454
commit
2665ba5cc1
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