File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ export const TemplatePage: FC<React.PropsWithChildren<unknown>> = () => {
50
50
templateSend ( "DELETE" )
51
51
}
52
52
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
+
53
61
if ( isLoading ) {
54
62
return < Loader />
55
63
}
Original file line number Diff line number Diff line change @@ -2,5 +2,11 @@ import { FC } from "react"
2
2
import { Navigate } from "react-router-dom"
3
3
4
4
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
+ */
5
11
return < Navigate to = "/workspaces" replace />
6
12
}
You can’t perform that action at this time.
0 commit comments