mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 20:48:01 +08:00
fix app type label
This commit is contained in:
parent
8125d8fc9f
commit
fe569559ac
@ -247,7 +247,11 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {
|
|||||||
<div className='truncate' title={app.name}>{app.name}</div>
|
<div className='truncate' title={app.name}>{app.name}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='flex items-center text-[10px] leading-[18px] text-gray-500 font-medium'>
|
<div className='flex items-center text-[10px] leading-[18px] text-gray-500 font-medium'>
|
||||||
<div className='truncate'>{t('app.types.chatbot').toUpperCase()}</div>
|
{app.mode === 'advanced-chat' && <div className='truncate'>{t('app.types.chatbot').toUpperCase()}</div>}
|
||||||
|
{app.mode === 'chat' && <div className='truncate'>{t('app.types.chatbot').toUpperCase()}</div>}
|
||||||
|
{app.mode === 'agent-chat' && <div className='truncate'>{t('app.types.agent').toUpperCase()}</div>}
|
||||||
|
{app.mode === 'workflow' && <div className='truncate'>{t('app.types.workflow').toUpperCase()}</div>}
|
||||||
|
{app.mode === 'completion' && <div className='truncate'>{t('app.types.completion').toUpperCase()}</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{isCurrentWorkspaceManager && <CustomPopover
|
{isCurrentWorkspaceManager && <CustomPopover
|
||||||
|
|||||||
@ -50,7 +50,11 @@ const AppCard = ({
|
|||||||
<div className='truncate' title={appBasicInfo.name}>{appBasicInfo.name}</div>
|
<div className='truncate' title={appBasicInfo.name}>{appBasicInfo.name}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='flex items-center text-[10px] leading-[18px] text-gray-500 font-medium'>
|
<div className='flex items-center text-[10px] leading-[18px] text-gray-500 font-medium'>
|
||||||
<div className='truncate'>{t('app.types.chatbot').toUpperCase()}</div>
|
{appBasicInfo.mode === 'advanced-chat' && <div className='truncate'>{t('app.types.chatbot').toUpperCase()}</div>}
|
||||||
|
{appBasicInfo.mode === 'chat' && <div className='truncate'>{t('app.types.chatbot').toUpperCase()}</div>}
|
||||||
|
{appBasicInfo.mode === 'agent-chat' && <div className='truncate'>{t('app.types.agent').toUpperCase()}</div>}
|
||||||
|
{appBasicInfo.mode === 'workflow' && <div className='truncate'>{t('app.types.workflow').toUpperCase()}</div>}
|
||||||
|
{appBasicInfo.mode === 'completion' && <div className='truncate'>{t('app.types.completion').toUpperCase()}</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user