From 7ccc268ced368af544f9327c43ac04e1cf6ca963 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 8 Jan 2025 19:34:41 +0800 Subject: [PATCH] fix: stop anim --- .../plugins/install-plugin/install-from-marketplace/index.tsx | 3 ++- .../install-plugin/install-from-marketplace/steps/install.tsx | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx index 84660ad6ea..72262894db 100644 --- a/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx +++ b/web/app/components/plugins/install-plugin/install-from-marketplace/index.tsx @@ -72,10 +72,12 @@ const InstallFromMarketplace: React.FC = ({ const handleInstalled = useCallback(() => { setStep(InstallStep.installed) refreshPluginList(manifest) + setIsInstalling(false) }, [manifest, refreshPluginList]) const handleFailed = useCallback((errorMsg?: string) => { setStep(InstallStep.installFailed) + setIsInstalling(false) if (errorMsg) setErrorMsg(errorMsg) }, []) @@ -112,7 +114,6 @@ const InstallFromMarketplace: React.FC = ({ onInstalled={handleInstalled} onFailed={handleFailed} onStartToInstall={handleStartToInstall} - clearCountDown={clearCountDown} /> )} { diff --git a/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx b/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx index be847c6756..0779f27ef6 100644 --- a/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx +++ b/web/app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx @@ -22,7 +22,6 @@ type Props = { onCancel: () => void onStartToInstall?: () => void onInstalled: () => void - clearCountDown: () => void onFailed: (message?: string) => void } @@ -32,7 +31,6 @@ const Installed: FC = ({ onCancel, onStartToInstall, onInstalled, - clearCountDown, onFailed, }) => { const { t } = useTranslation() @@ -93,8 +91,6 @@ const Installed: FC = ({ isInstalled = all_installed } - clearCountDown() - if (isInstalled) { onInstalled() return