Skip to content

Commit

Permalink
Add missing tooltip provider
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt committed Jan 9, 2025
1 parent e657120 commit 3dc2abc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions frontend/src/components/organization/org-settings-sso.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
} from "@/components/ui/form"
import { Input } from "@/components/ui/input"
import { Switch } from "@/components/ui/switch"
import { TooltipProvider } from "@/components/ui/tooltip"
import { CopyButton } from "@/components/copy-button"
import { CenteredSpinner } from "@/components/loading/spinner"
import { AlertNotification } from "@/components/notifications"
Expand Down Expand Up @@ -128,13 +129,17 @@ export function OrgSettingsSsoForm() {
name="saml_sp_acs_url"
render={({ field }) => (
<FormItem className="flex flex-col">
<FormLabel>Service Provider ACS URL</FormLabel>
{field.value && (
<CopyButton
value={field.value}
toastMessage="Copied Service Provider ACS URL to clipboard"
/>
)}
<FormLabel className="flex items-center gap-2">
<span>Service Provider ACS URL</span>
<TooltipProvider>
{field.value && (
<CopyButton
value={field.value}
toastMessage="Copied Service Provider ACS URL to clipboard"
/>
)}
</TooltipProvider>
</FormLabel>
<FormControl>
<Input
placeholder="http://localhost/api/auth/saml/acs"
Expand Down

0 comments on commit 3dc2abc

Please sign in to comment.