feat: web app support some feature (#1753)

This commit is contained in:
zxhlyh
2023-12-13 20:21:11 +08:00
committed by GitHub
parent b5b20234e9
commit eede84eb9e
6 changed files with 29 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ export type IWelcomeProps = {
savedInputs: Record<string, any>
onInputsChange: (inputs: Record<string, any>) => void
plan?: string
canReplaceLogo?: boolean
}
const Welcome: FC<IWelcomeProps> = ({
@@ -39,6 +40,7 @@ const Welcome: FC<IWelcomeProps> = ({
canEidtInpus,
savedInputs,
onInputsChange,
canReplaceLogo,
}) => {
const { t } = useTranslation()
const hasVar = promptConfig.prompt_variables.length > 0
@@ -350,7 +352,7 @@ const Welcome: FC<IWelcomeProps> = ({
</div>
: <div>
</div>}
{plan === 'basic' && <a className='flex items-center pr-3 space-x-3' href="https://dify.ai/" target="_blank">
{!canReplaceLogo && <a className='flex items-center pr-3 space-x-3' href="https://dify.ai/" target="_blank">
<span className='uppercase'>{t('share.chat.powerBy')}</span>
<FootLogo />
</a>}