Skip to content

Commit 0ca4c35

Browse files
committed
wip(drop): add notes
1 parent 03a2c43 commit 0ca4c35

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

site/src/pages/TemplatePage/TemplatePage.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ export const TemplatePage: FC<React.PropsWithChildren<unknown>> = () => {
5050
templateSend("DELETE")
5151
}
5252

53+
// TODO@jsjoeio - handle other scenario
54+
// If template doesn't exist, navigate to templates
55+
// display error notification
56+
// Probably going to need to modify the service
57+
// site/src/xServices/template/templateXService.ts
58+
// For an example, look here: site/src/xServices/workspaces/workspacesXService.ts
59+
// displayError is the function we want to use
60+
5361
if (isLoading) {
5462
return <Loader />
5563
}

site/src/pages/index.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@ import { FC } from "react"
22
import { Navigate } from "react-router-dom"
33

44
export const IndexPage: FC = () => {
5+
// TODO@jsjoeio - here's what we need to do:
6+
/*
7+
1. check query params for template
8+
2. if none, navigate to /workspaces
9+
3. if some, navigate to /templates/<template>
10+
*/
511
return <Navigate to="/workspaces" replace />
612
}

0 commit comments

Comments
 (0)