feat: switch plugin version changelog

This commit is contained in:
AkaraChen 2025-01-08 16:19:41 +08:00
parent 2fd083629d
commit f58eef74b3

View File

@ -15,6 +15,7 @@ import { pluginManifestToCardPluginProps } from '@/app/components/plugins/instal
import { Badge as Badge2, BadgeState } from '@/app/components/base/badge/index'
import Link from 'next/link'
import { useTranslation } from 'react-i18next'
import { marketplaceUrlPrefix } from '@/config'
export type SwitchPluginVersionProps = {
uniqueIdentifier: string
@ -79,7 +80,11 @@ export const SwitchPluginVersion: FC<SwitchPluginVersionProps> = (props) => {
</Badge2>
</>}
modalBottomLeft={
<Link className='flex justify-center items-center gap-1' href={'TODO: add changelog url'} target='_blank'>
<Link
className='flex justify-center items-center gap-1'
href={`${marketplaceUrlPrefix}/plugins/${pluginDetail.declaration.author}/${pluginDetail.declaration.name}`}
target='_blank'
>
<span className='text-text-accent system-xs-regular text-xs'>
{t('workflow.nodes.agent.installPlugin.changelog')}
</span>