mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
@@ -442,6 +442,8 @@ export default function ConnectionModal({ onClose }: ConnectionModalProps) {
|
|||||||
{t('subscription.connection.addToApp', { appName: selectedApp.name })}
|
{t('subscription.connection.addToApp', { appName: selectedApp.name })}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
{/* Copy link button - hidden when hideLink is true */}
|
||||||
|
{!appConfig?.hideLink && (
|
||||||
<button
|
<button
|
||||||
onClick={copySubscriptionLink}
|
onClick={copySubscriptionLink}
|
||||||
className={`w-full h-11 rounded-xl border transition-all flex items-center justify-center gap-2 text-sm font-medium ${
|
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 ? <CheckIcon /> : <CopyIcon />}
|
||||||
{copied ? t('subscription.connection.copied') : t('subscription.connection.copyLink')}
|
{copied ? t('subscription.connection.copied') : t('subscription.connection.copyLink')}
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -455,7 +455,8 @@ export default function Subscription() {
|
|||||||
{t('subscription.getConfig')}
|
{t('subscription.getConfig')}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Subscription URL */}
|
{/* Subscription URL - hidden when hide_subscription_link is true */}
|
||||||
|
{!subscription.hide_subscription_link && (
|
||||||
<div className="flex gap-2">
|
<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">
|
<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}
|
{subscription.subscription_url}
|
||||||
@@ -468,6 +469,7 @@ export default function Subscription() {
|
|||||||
{copied ? <CheckIcon /> : <CopyIcon />}
|
{copied ? <CheckIcon /> : <CopyIcon />}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -482,6 +482,7 @@ export interface AppConfig {
|
|||||||
platformNames: Record<string, LocalizedText>
|
platformNames: Record<string, LocalizedText>
|
||||||
hasSubscription: boolean
|
hasSubscription: boolean
|
||||||
subscriptionUrl: string | null
|
subscriptionUrl: string | null
|
||||||
|
hideLink?: boolean
|
||||||
branding?: {
|
branding?: {
|
||||||
name?: string
|
name?: string
|
||||||
logoUrl?: string
|
logoUrl?: string
|
||||||
|
|||||||
Reference in New Issue
Block a user