Skip to content

Commit 18488f8

Browse files
committed
Show error if no gitauth is configured
1 parent ff2b822 commit 18488f8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@ export const CreateWorkspacePageView: FC<
163163
}
164164
/>
165165
)}
166+
{Boolean(
167+
props.createWorkspaceErrors[
168+
CreateWorkspaceErrors.GET_TEMPLATE_GITAUTH_ERROR
169+
],
170+
) && (
171+
<AlertBanner
172+
severity="error"
173+
error={
174+
props.createWorkspaceErrors[
175+
CreateWorkspaceErrors.GET_TEMPLATE_GITAUTH_ERROR
176+
]
177+
}
178+
/>
179+
)}
166180
</Stack>
167181
)
168182
}

0 commit comments

Comments
 (0)