Skip to content

Commit

Permalink
Revert "fix(ui): prevent renaming integration with active connections"
Browse files Browse the repository at this point in the history
This reverts commit 7b92f54.
  • Loading branch information
bodinsamuel committed Dec 2, 2024
1 parent 7b92f54 commit 2d57b59
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { CopyButton } from '../../../../../components/ui/button/CopyButton';
import SecretInput from '../../../../../components/ui/input/SecretInput';
import type { EnvironmentAndAccount } from '@nangohq/server';
import { Info } from '../../../../../components/Info';
import { SimpleTooltip } from '../../../../../components/SimpleTooltip';

const FIELD_DISPLAY_NAMES: Record<string, Record<string, string>> = {
OAUTH1: {
Expand Down Expand Up @@ -140,13 +139,9 @@ export const SettingsGeneral: React.FC<{
) : (
<div className="flex items-center text-white text-sm">
<div className="mr-2">{integration.unique_key}</div>
<SimpleTooltip
tooltipContent={meta.connectionsCount > 0 ? "You can't change an integration id when you have active connections" : ''}
>
<Button variant={'icon'} onClick={() => setShowEditIntegrationId(true)} size={'xs'} disabled={meta.connectionsCount > 0}>
<Pencil1Icon />
</Button>
</SimpleTooltip>
<Button variant={'icon'} onClick={() => setShowEditIntegrationId(true)} size={'xs'}>
<Pencil1Icon />
</Button>
</div>
)}
</InfoBloc>
Expand Down

0 comments on commit 2d57b59

Please sign in to comment.