diff --git a/web/app/components/header/account-setting/index.tsx b/web/app/components/header/account-setting/index.tsx index 3823866109..c1fa85235c 100644 --- a/web/app/components/header/account-setting/index.tsx +++ b/web/app/components/header/account-setting/index.tsx @@ -48,6 +48,7 @@ type IAccountSettingProps = { type GroupItem = { key: string name: string + description?: string icon: JSX.Element activeIcon: JSX.Element } @@ -78,6 +79,7 @@ export default function AccountSetting({ // Use key false to hide this item key: enableBilling ? 'billing' : false, name: t('common.settings.billing'), + description: t('billing.plansCommon.receiptInfo'), icon: , activeIcon: , }, @@ -160,6 +162,8 @@ export default function AccountSetting({ } }, []) + const activeItem = [...menuItems[0].items, ...menuItems[1].items].find(item => item.key === activeMenu) + return (
-
- {[...menuItems[0].items, ...menuItems[1].items].find(item => item.key === activeMenu)?.name} -
- +
+
{activeItem?.name}
+ { + activeItem?.description && ( +
{activeItem?.description}
+ ) + } +
+
+ +
diff --git a/web/i18n/lang/billing.en.ts b/web/i18n/lang/billing.en.ts index b165037477..038922f62e 100644 --- a/web/i18n/lang/billing.en.ts +++ b/web/i18n/lang/billing.en.ts @@ -68,6 +68,7 @@ const translation = { tooltip: 'Manual editing and annotation of responses provides customizable high-quality question-answering abilities for apps. (Applicable only in chat apps)', }, ragAPIRequestTooltip: 'Refers to the number of API calls invoking only the knowledge base processing capabilities of Dify.', + receiptInfo: 'Only team owner can subscribe and view billing information', }, plans: { sandbox: { diff --git a/web/i18n/lang/billing.zh.ts b/web/i18n/lang/billing.zh.ts index 41b9300a43..4d9728b8d7 100644 --- a/web/i18n/lang/billing.zh.ts +++ b/web/i18n/lang/billing.zh.ts @@ -68,6 +68,7 @@ const translation = { tooltip: '标注回复功能通过人工编辑标注为应用提供了可定制的高质量问答回复能力', }, ragAPIRequestTooltip: '指单独调用 Dify 知识库数据处理能力的 API。', + receiptInfo: '只有团队所有者才能订阅和查看账单信息', }, plans: { sandbox: {