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 2ea822df42..f08424cf88 100644 --- a/web/app/components/plugins/plugin-page/plugin-tasks/index.tsx +++ b/web/app/components/plugins/plugin-page/plugin-tasks/index.tsx @@ -34,11 +34,14 @@ const PluginTasks = () => { handleClearErrorPlugin, } = usePluginTaskStatus() const { getIconUrl } = useGetIcon() + const runningPluginsLength = runningPlugins.length + const errorPluginsLength = errorPlugins.length + const successPluginsLength = successPlugins.length - const isInstalling = runningPlugins.length > 0 && errorPlugins.length === 0 && successPlugins.length === 0 - const isInstallingWithError = errorPlugins.length > 0 && errorPlugins.length < totalPluginsLength - const isSuccess = successPlugins.length === totalPluginsLength && totalPluginsLength > 0 - const isFailed = errorPlugins.length === totalPluginsLength && totalPluginsLength > 0 + const isInstalling = runningPluginsLength > 0 && errorPluginsLength === 0 + const isInstallingWithError = runningPluginsLength > 0 && errorPluginsLength > 0 + const isSuccess = successPluginsLength === totalPluginsLength && totalPluginsLength > 0 + const isFailed = runningPluginsLength === 0 && (errorPluginsLength + successPluginsLength) === totalPluginsLength && totalPluginsLength > 0 const tip = useMemo(() => { if (isInstalling) @@ -72,7 +75,7 @@ const PluginTasks = () => {
{
-
{t('plugin.task.installedError')}
+
+ {t('plugin.task.installedError', { errorLength: errorPlugins.length })} +
{ errorPlugins.map(errorPlugin => (