diff options
author | Skitty1238 <157652284+Skitty1238@users.noreply.github.com> | 2025-06-09 17:02:18 -0400 |
---|---|---|
committer | Skitty1238 <157652284+Skitty1238@users.noreply.github.com> | 2025-06-09 17:02:18 -0400 |
commit | 765c7a3870a1d446622a28b157ab00a4dced2879 (patch) | |
tree | 1fca2d7f00413e3657ed4b1c2a2ba3821706fba7 /src | |
parent | b1560c38d5eba32b0b313786d3e049797c770abe (diff) |
documentation
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/TaskBox.tsx | 4 | ||||
-rw-r--r-- | src/server/ApiManagers/GeneralGoogleManager.ts | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/client/views/nodes/TaskBox.tsx b/src/client/views/nodes/TaskBox.tsx index f415f8b52..ed5982c55 100644 --- a/src/client/views/nodes/TaskBox.tsx +++ b/src/client/views/nodes/TaskBox.tsx @@ -286,7 +286,7 @@ export class TaskBox extends ViewBoxBaseComponent<FieldViewProps>() { const listener = () => { window.removeEventListener('focusin', listener); if (confirm('✅ Authorization complete. Try syncing the task again?')) { - // you could refactor the click handler here + // try syncing again this.syncWithGoogleTaskBidirectional(); } window.removeEventListener('focusin', listener); @@ -498,7 +498,6 @@ export class TaskBox extends ViewBoxBaseComponent<FieldViewProps>() { this._widthDisposer?.(); } - /** * Method to handle task deletion * @returns - a promise that resolves when the task is deleted @@ -560,7 +559,6 @@ export class TaskBox extends ViewBoxBaseComponent<FieldViewProps>() { const endTime = DateCast(doc.$task_endTime) ? toLocalDateTimeString(DateCast(doc.$task_endTime)!.date) : ''; const handleGoogleTaskSync = async () => { - console.log('GT button clicked'); const success = await this.syncWithGoogleTaskBidirectional(); if (success) { diff --git a/src/server/ApiManagers/GeneralGoogleManager.ts b/src/server/ApiManagers/GeneralGoogleManager.ts index aceead3c6..110701418 100644 --- a/src/server/ApiManagers/GeneralGoogleManager.ts +++ b/src/server/ApiManagers/GeneralGoogleManager.ts @@ -63,8 +63,6 @@ export default class GeneralGoogleManager extends ApiManager { }, }); - // AARAV ADD - // Task Creation register({ method: Method.POST, @@ -153,6 +151,8 @@ export default class GeneralGoogleManager extends ApiManager { }, }); + // Google Account Linking + register({ method: Method.GET, subscription: '/refreshGoogle', |