diff --git a/src/pages/DeploySettings.tsx b/src/pages/DeploySettings.tsx index bd970c34..c7e7c604 100644 --- a/src/pages/DeploySettings.tsx +++ b/src/pages/DeploySettings.tsx @@ -1,6 +1,6 @@ import { useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { Rocket, ArrowLeft, Trash2, Check, GripVertical, ChevronDown, Plus } from 'lucide-react'; +import { Rocket, ArrowLeft, Trash2, Check, GripVertical, ChevronDown, Plus, ExternalLink } from 'lucide-react'; import { Checkbox } from '@/components/ui/checkbox'; import { DropdownMenu, @@ -673,31 +673,20 @@ export function DeploySettings() { return ( -
-
- {(() => { - const url = getProviderUrl(preset); - return url ? ( - } - /> - ) : ( - - ); - })()} -
{preset.name}
-
- {preset.apiKeyURL && !isOAuthConfigured && ( - - )} +
+ {(() => { + const url = getProviderUrl(preset); + return url ? ( + } + /> + ) : ( + + ); + })()} +
{preset.name}

{preset.description}

@@ -777,35 +766,59 @@ export function DeploySettings() {
{!preset.requiresNostr && preset.type !== 'nsite' && ( <> - setPresetApiKeys(prev => ({ - ...prev, - [preset.id]: e.target.value, - }))} - onKeyDown={(e) => { - if (e.key === 'Enter' && presetApiKeys[preset.id]?.trim() && - (preset.type !== 'cloudflare' || presetApiKeys[`${preset.id}-accountId`]?.trim())) { - handleAddPresetProvider(preset); - } - }} - /> - {preset.type === 'cloudflare' && ( - + setPresetApiKeys(prev => ({ ...prev, - [`${preset.id}-accountId`]: e.target.value, + [preset.id]: e.target.value, }))} onKeyDown={(e) => { if (e.key === 'Enter' && presetApiKeys[preset.id]?.trim() && - presetApiKeys[`${preset.id}-accountId`]?.trim()) { + (preset.type !== 'cloudflare' || presetApiKeys[`${preset.id}-accountId`]?.trim())) { handleAddPresetProvider(preset); } }} /> + {preset.apiKeyURL && !presetApiKeys[preset.id] && ( + + )} +
+ {preset.type === 'cloudflare' && ( +
+ setPresetApiKeys(prev => ({ + ...prev, + [`${preset.id}-accountId`]: e.target.value, + }))} + onKeyDown={(e) => { + if (e.key === 'Enter' && presetApiKeys[preset.id]?.trim() && + presetApiKeys[`${preset.id}-accountId`]?.trim()) { + handleAddPresetProvider(preset); + } + }} + /> + {preset.accountIdURL && !presetApiKeys[`${preset.id}-accountId`] && ( + + )} +
)} )}