diff --git a/src/components/ConnectionModal.tsx b/src/components/ConnectionModal.tsx index a0a10dc..0fa463f 100644 --- a/src/components/ConnectionModal.tsx +++ b/src/components/ConnectionModal.tsx @@ -442,17 +442,20 @@ export default function ConnectionModal({ onClose }: ConnectionModalProps) { {t('subscription.connection.addToApp', { appName: selectedApp.name })} )} - + {/* Copy link button - hidden when hideLink is true */} + {!appConfig?.hideLink && ( + + )} )} diff --git a/src/pages/Subscription.tsx b/src/pages/Subscription.tsx index b380fae..2634932 100644 --- a/src/pages/Subscription.tsx +++ b/src/pages/Subscription.tsx @@ -455,19 +455,21 @@ export default function Subscription() { {t('subscription.getConfig')} - {/* Subscription URL */} -
- - {subscription.subscription_url} - - -
+ {/* Subscription URL - hidden when hide_subscription_link is true */} + {!subscription.hide_subscription_link && ( +
+ + {subscription.subscription_url} + + +
+ )} )} diff --git a/src/types/index.ts b/src/types/index.ts index 2154f86..ebebcba 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -482,6 +482,7 @@ export interface AppConfig { platformNames: Record hasSubscription: boolean subscriptionUrl: string | null + hideLink?: boolean branding?: { name?: string logoUrl?: string