Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Feat: hide password setting and invitation link in cloud version (#581)
KVOJJJind54e942264f7
diff --git a/web/app/components/header/account-setting/account-page/index.tsx b/web/app/components/header/account-setting/account-page/index.tsxindex 4b0cb654942..3763d9cc8eb 100644--- a/web/app/components/header/account-setting/account-page/index.tsx+++ b/web/app/components/header/account-setting/account-page/index.tsx@@ -13,6 +13,7 @@ import { useAppContext } from '@/context/app-context'import { ToastContext } from '@/app/components/base/toast'import AppIcon from '@/app/components/base/app-icon'import Avatar from '@/app/components/base/avatar'+import { IS_CE_EDITION } from '@/config'const titleClassName = `text-sm font-medium text-gray-900@@ -136,11 +137,13 @@ export default function AccountPage() {<div className={titleClassName}>{t('common.account.email')}</div><div className={classNames(inputClassName, 'cursor-pointer')}>{userProfile.email}</div></div>- <div className='mb-8'>- <div className='mb-1 text-sm font-medium text-gray-900'>{t('common.account.password')}</div>- <div className='mb-2 text-xs text-gray-500'>{t('common.account.passwordTip')}</div>- <Button className='font-medium !text-gray-700 !px-3 !py-[7px] !text-[13px]' onClick={() => setEditPasswordModalVisible(true)}>{userProfile.is_password_set ? t('common.account.resetPassword') : t('common.account.setPassword')}</Button>- </div>+ {IS_CE_EDITION && (+ <div className='mb-8'>+ <div className='mb-1 text-sm font-medium text-gray-900'>{t('common.account.password')}</div>+ <div className='mb-2 text-xs text-gray-500'>{t('common.account.passwordTip')}</div>+ <Button className='font-medium !text-gray-700 !px-3 !py-[7px] !text-[13px]' onClick={() => setEditPasswordModalVisible(true)}>{userProfile.is_password_set ? t('common.account.resetPassword') : t('common.account.setPassword')}</Button>+ </div>+ )}{!!apps.length && (<><div className='mb-6 border-[0.5px] border-gray-100' />diff --git a/web/app/components/header/account-setting/members-page/invited-modal/index.tsx b/web/app/components/header/account-setting/members-page/invited-modal/index.tsxindex 389a569cd69..86c871c1d4d 100644--- a/web/app/components/header/account-setting/members-page/invited-modal/index.tsx+++ b/web/app/components/header/account-setting/members-page/invited-modal/index.tsx@@ -5,6 +5,8 @@ import InvitationLink from './invitation-link'import s from './index.module.css'import Modal from '@/app/components/base/modal'import Button from '@/app/components/base/button'+import { IS_CE_EDITION } from '@/config'+type IInvitedModalProps = {invitationLink: stringonCancel: () => void@@ -29,11 +31,18 @@ const InvitedModal = ({<XMarkIcon className='w-4 h-4 cursor-pointer' onClick={onCancel} /></div><div className='mb-1 text-xl font-semibold text-gray-900'>{t('common.members.invitationSent')}</div>- <div className='mb-5 text-sm text-gray-500'>{t('common.members.invitationSentTip')}</div>- <div className='mb-9'>- <div className='py-2 text-sm font-Medium text-gray-900'>{t('common.members.invitationLink')}</div>- <InvitationLink value={invitationLink} />- </div>+ {!IS_CE_EDITION && (+ <div className='mb-10 text-sm text-gray-500'>{t('common.members.invitationSentTip')}</div>+ )}+ {IS_CE_EDITION && (+ <>+ <div className='mb-5 text-sm text-gray-500'>{t('common.members.invitationSentTip')}</div>+ <div className='mb-9'>+ <div className='py-2 text-sm font-Medium text-gray-900'>{t('common.members.invitationLink')}</div>+ <InvitationLink value={invitationLink} />+ </div>+ </>+ )}<div className='flex justify-end'><ButtonclassName='w-[96px] text-sm font-medium'