mirror of https://github.com/langgenius/dify.git
chore: add version type in marketplace return
This commit is contained in:
parent
8993a91f12
commit
c59c696df2
|
|
@ -80,7 +80,7 @@ const Installed: FC<Props> = ({
|
|||
return (<>{
|
||||
payload.latest_version === toInstallVersion || !supportCheckInstalled
|
||||
? (
|
||||
<Badge className='mx-1' size="s" state={BadgeState.Default}>{payload.latest_version}</Badge>
|
||||
<Badge className='mx-1' size="s" state={BadgeState.Default}>{payload.version || payload.latest_version}</Badge>
|
||||
)
|
||||
: (
|
||||
<>
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ const PluginPage = ({
|
|||
if (packageId) {
|
||||
const { data } = await fetchManifestFromMarketPlace(encodeURIComponent(packageId))
|
||||
const { plugin } = data
|
||||
// TODO: wait api return current plugin version
|
||||
setManifest({
|
||||
...plugin,
|
||||
icon: `${marketplaceApiPrefix}/plugins/${plugin.org}/${plugin.name}/icon`,
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ export type PluginManifestInMarket = {
|
|||
icon: string
|
||||
label: Record<Locale, string>
|
||||
category: PluginType
|
||||
version: string // TODO: wait api return current plugin version
|
||||
latest_version: string
|
||||
brief: Record<Locale, string>
|
||||
introduction: string
|
||||
|
|
|
|||
Loading…
Reference in New Issue