From 691dbf9d17afa82db9b9beab480015b85d464c1d Mon Sep 17 00:00:00 2001 From: Yi Date: Tue, 5 Nov 2024 11:02:57 +0800 Subject: [PATCH] chore: update plugin from GitHub --- .../steps/selectPackage.tsx | 22 ++++++++++++------- web/i18n/en-US/plugin.ts | 1 + web/i18n/zh-Hans/plugin.ts | 1 + 3 files changed, 16 insertions(+), 8 deletions(-) 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 + && + }