From d17932d7238c4d2174fd281b8c65e1c1c3996f63 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Wed, 8 Jan 2025 10:12:27 +0800 Subject: [PATCH] fix: install task icon --- .../plugin-page/plugin-tasks/index.tsx | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/web/app/components/plugins/plugin-page/plugin-tasks/index.tsx b/web/app/components/plugins/plugin-page/plugin-tasks/index.tsx index 9d7345c22e..328cc2a868 100644 --- a/web/app/components/plugins/plugin-page/plugin-tasks/index.tsx +++ b/web/app/components/plugins/plugin-page/plugin-tasks/index.tsx @@ -21,6 +21,7 @@ import CardIcon from '@/app/components/plugins/card/base/card-icon' import cn from '@/utils/classnames' import { useGetLanguage } from '@/context/i18n' import useGetIcon from '@/app/components/plugins/install-plugin/base/use-get-icon' +import DownloadingIcon from '@/app/components/header/plugins-nav/downloading-icon' const PluginTasks = () => { const { t } = useTranslation() @@ -87,12 +88,21 @@ const PluginTasks = () => { (isInstallingWithError || isFailed) && 'border-components-button-destructive-secondary-border-hover bg-state-destructive-hover hover:bg-state-destructive-hover-alt cursor-pointer', )} > - + { + (isInstalling || isInstallingWithError) && ( + + ) + } + { + !(isInstalling || isInstallingWithError) && ( + + ) + }
{ (isInstalling || isInstallingWithSuccess) && (