mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 17:18:40 +08:00
fix: update version show problem
This commit is contained in:
parent
d40f0e645c
commit
b8af4aead1
@ -201,7 +201,15 @@ const DetailHeader = ({
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{(hasNewVersion || isFromGitHub) && (
|
{(hasNewVersion || isFromGitHub) && (
|
||||||
<Button variant='secondary-accent' size='small' className='!h-5' onClick={handleUpdate}>{t('plugin.detailPanel.operation.update')}</Button>
|
<Button variant='secondary-accent' size='small' className='!h-5' onClick={() => {
|
||||||
|
if (isFromMarketplace) {
|
||||||
|
setTargetVersion({
|
||||||
|
version: latest_version,
|
||||||
|
unique_identifier: latest_unique_identifier,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
handleUpdate()
|
||||||
|
}}>{t('plugin.detailPanel.operation.update')}</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className='mb-1 flex justify-between items-center h-4'>
|
<div className='mb-1 flex justify-between items-center h-4'>
|
||||||
|
|||||||
@ -89,6 +89,7 @@ const UpdatePluginModal: FC<Props> = ({
|
|||||||
})
|
})
|
||||||
onSave()
|
onSave()
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line unused-imports/no-unused-vars
|
||||||
catch (e) {
|
catch (e) {
|
||||||
setUploadStep(UploadStep.notStarted)
|
setUploadStep(UploadStep.notStarted)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user