Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve & Copy Org Id in Org settings #18785

Merged
merged 2 commits into from
Sep 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/dashboard/src/teams/TeamSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { OrgSettingsPage } from "./OrgSettingsPage";
import { useDefaultWorkspaceImageQuery } from "../data/workspaces/default-workspace-image-query";
import Modal, { ModalBody, ModalFooter, ModalHeader } from "../components/Modal";
import { InputField } from "../components/forms/InputField";
import { InputWithCopy } from "../components/InputWithCopy";
import { ReactComponent as Stack } from "../icons/Stack.svg";

export default function TeamSettingsPage() {
Expand Down Expand Up @@ -204,6 +205,12 @@ function OrgSettingsForm(props: { org?: OrganizationInfo }) {
// handleUpdateTeamSettings({ defaultWorkspaceImage });
}}
>
{props.org && (
<InputField label="Organization ID">
<InputWithCopy value={props.org.id} tip="Copy Org ID" />
Siddhant-K-code marked this conversation as resolved.
Show resolved Hide resolved
</InputField>
)}

<Heading2 className="pt-12">Collaboration & Sharing</Heading2>

{updateTeamSettings.isError && (
Expand Down
Loading