From 821872a1052da62d01e3701377145d9bc6d32ca7 Mon Sep 17 00:00:00 2001 From: Sven Efftinge Date: Tue, 7 May 2024 06:23:03 +0000 Subject: [PATCH] [dashboard] help github users with org restrictions --- .../dashboard/src/workspaces/CreateWorkspacePage.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/dashboard/src/workspaces/CreateWorkspacePage.tsx b/components/dashboard/src/workspaces/CreateWorkspacePage.tsx index 6ccfa95f42f160..50c6aba6af7082 100644 --- a/components/dashboard/src/workspaces/CreateWorkspacePage.tsx +++ b/components/dashboard/src/workspaces/CreateWorkspacePage.tsx @@ -54,6 +54,7 @@ import { useAllowedWorkspaceClassesMemo } from "../data/workspaces/workspace-cla import Menu from "../menu/Menu"; import { useOrgSettingsQuery } from "../data/organizations/org-settings-query"; import { useAllowedWorkspaceEditorsMemo } from "../data/ide-options/ide-options-query"; +import { isGitpodIo } from "../utils"; type NextLoadOption = "searchParams" | "autoStart" | "allDone"; @@ -746,6 +747,15 @@ export const RepositoryNotFound: FC<{ error: StartWorkspaceError }> = ({ error } /> ); } + if (authProvider.id.toLocaleLowerCase() === "public-github" && isGitpodIo()) { + return ( + + ); + } return (