mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +08:00
feat: add red corner mark to Badge component for marketplace plugins (#18162)
This commit is contained in:
parent
95283b4dd3
commit
640ee80010
@ -104,7 +104,10 @@ const PluginItem: FC<Props> = ({
|
|||||||
{!isDifyVersionCompatible && <Tooltip popupContent={
|
{!isDifyVersionCompatible && <Tooltip popupContent={
|
||||||
t('plugin.difyVersionNotCompatible', { minimalDifyVersion: declarationMeta.minimum_dify_version })
|
t('plugin.difyVersionNotCompatible', { minimalDifyVersion: declarationMeta.minimum_dify_version })
|
||||||
}><RiErrorWarningLine color='red' className="ml-0.5 h-4 w-4 shrink-0 text-text-accent" /></Tooltip>}
|
}><RiErrorWarningLine color='red' className="ml-0.5 h-4 w-4 shrink-0 text-text-accent" /></Tooltip>}
|
||||||
<Badge className='ml-1 shrink-0' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} />
|
<Badge className='ml-1 shrink-0'
|
||||||
|
text={source === PluginSource.github ? plugin.meta!.version : plugin.version}
|
||||||
|
hasRedCornerMark={(source === PluginSource.marketplace) && !!plugin.latest_unique_identifier && plugin.latest_unique_identifier !== plugin_unique_identifier}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='flex items-center justify-between'>
|
<div className='flex items-center justify-between'>
|
||||||
<Description text={descriptionText} descriptionLineRows={1}></Description>
|
<Description text={descriptionText} descriptionLineRows={1}></Description>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user