mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
@@ -442,6 +442,8 @@ export default function ConnectionModal({ onClose }: ConnectionModalProps) {
|
||||
{t('subscription.connection.addToApp', { appName: selectedApp.name })}
|
||||
</button>
|
||||
)}
|
||||
{/* Copy link button - hidden when hideLink is true */}
|
||||
{!appConfig?.hideLink && (
|
||||
<button
|
||||
onClick={copySubscriptionLink}
|
||||
className={`w-full h-11 rounded-xl border transition-all flex items-center justify-center gap-2 text-sm font-medium ${
|
||||
@@ -453,6 +455,7 @@ export default function ConnectionModal({ onClose }: ConnectionModalProps) {
|
||||
{copied ? <CheckIcon /> : <CopyIcon />}
|
||||
{copied ? t('subscription.connection.copied') : t('subscription.connection.copyLink')}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -455,7 +455,8 @@ export default function Subscription() {
|
||||
{t('subscription.getConfig')}
|
||||
</button>
|
||||
|
||||
{/* Subscription URL */}
|
||||
{/* Subscription URL - hidden when hide_subscription_link is true */}
|
||||
{!subscription.hide_subscription_link && (
|
||||
<div className="flex gap-2">
|
||||
<code className="flex-1 bg-dark-900/50 border border-dark-700/50 px-3 py-2 rounded-lg text-xs text-dark-300 overflow-x-auto scrollbar-hide break-all">
|
||||
{subscription.subscription_url}
|
||||
@@ -468,6 +469,7 @@ export default function Subscription() {
|
||||
{copied ? <CheckIcon /> : <CopyIcon />}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
@@ -482,6 +482,7 @@ export interface AppConfig {
|
||||
platformNames: Record<string, LocalizedText>
|
||||
hasSubscription: boolean
|
||||
subscriptionUrl: string | null
|
||||
hideLink?: boolean
|
||||
branding?: {
|
||||
name?: string
|
||||
logoUrl?: string
|
||||
|
||||
Reference in New Issue
Block a user