diff --git a/web/app/components/plugins/install-plugin/install-from-github/steps/selectPackage.tsx b/web/app/components/plugins/install-plugin/install-from-github/steps/selectPackage.tsx index 70ef1d8522..f5ee125ccf 100644 --- a/web/app/components/plugins/install-plugin/install-from-github/steps/selectPackage.tsx +++ b/web/app/components/plugins/install-plugin/install-from-github/steps/selectPackage.tsx @@ -7,6 +7,7 @@ import Button from '@/app/components/base/button' import { useTranslation } from 'react-i18next' type SelectPackageProps = { + isEdit?: boolean selectedVersion: string versions: Item[] onSelectVersion: (item: Item) => void @@ -18,6 +19,7 @@ type SelectPackageProps = { } const SelectPackage: React.FC = ({ + isEdit = false, selectedVersion, versions, onSelectVersion, @@ -34,7 +36,9 @@ const SelectPackage: React.FC = ({ htmlFor='version' className='flex flex-col justify-center items-start self-stretch text-text-secondary' > - {t('plugin.installFromGitHub.selectVersion')} + {isEdit ? t('plugin.installFromGitHub.updateVersion') + : t('plugin.installFromGitHub.selectVersion')} + = ({ popupClassName='w-[432px] z-[1001]' />
- + {!isEdit + && + }