|
|
|
@ -20,6 +20,7 @@ import ProgressCircle from '@/app/components/base/progress-bar/progress-circle'
|
|
|
|
import CardIcon from '@/app/components/plugins/card/base/card-icon'
|
|
|
|
import CardIcon from '@/app/components/plugins/card/base/card-icon'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
import { useGetLanguage } from '@/context/i18n'
|
|
|
|
import { useGetLanguage } from '@/context/i18n'
|
|
|
|
|
|
|
|
import useGetIcon from '@/app/components/plugins/install-plugin/base/use-get-icon'
|
|
|
|
|
|
|
|
|
|
|
|
const PluginTasks = () => {
|
|
|
|
const PluginTasks = () => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const { t } = useTranslation()
|
|
|
|
@ -32,6 +33,7 @@ const PluginTasks = () => {
|
|
|
|
totalPluginsLength,
|
|
|
|
totalPluginsLength,
|
|
|
|
handleClearErrorPlugin,
|
|
|
|
handleClearErrorPlugin,
|
|
|
|
} = usePluginTaskStatus()
|
|
|
|
} = usePluginTaskStatus()
|
|
|
|
|
|
|
|
const { getIconUrl } = useGetIcon()
|
|
|
|
|
|
|
|
|
|
|
|
const isInstalling = runningPlugins.length > 0 && errorPlugins.length === 0 && successPlugins.length === 0
|
|
|
|
const isInstalling = runningPlugins.length > 0 && errorPlugins.length === 0 && successPlugins.length === 0
|
|
|
|
const isInstallingWithError = errorPlugins.length > 0 && errorPlugins.length < totalPluginsLength
|
|
|
|
const isInstallingWithError = errorPlugins.length > 0 && errorPlugins.length < totalPluginsLength
|
|
|
|
@ -123,7 +125,8 @@ const PluginTasks = () => {
|
|
|
|
<div className='relative flex items-center justify-center mr-2 w-6 h-6 rounded-md border-[0.5px] border-components-panel-border-subtle bg-background-default-dodge'>
|
|
|
|
<div className='relative flex items-center justify-center mr-2 w-6 h-6 rounded-md border-[0.5px] border-components-panel-border-subtle bg-background-default-dodge'>
|
|
|
|
<RiErrorWarningFill className='absolute -right-0.5 -bottom-0.5 w-3 h-3 text-text-destructive' />
|
|
|
|
<RiErrorWarningFill className='absolute -right-0.5 -bottom-0.5 w-3 h-3 text-text-destructive' />
|
|
|
|
<CardIcon
|
|
|
|
<CardIcon
|
|
|
|
src={errorPlugin.icon}
|
|
|
|
size='tiny'
|
|
|
|
|
|
|
|
src={getIconUrl(errorPlugin.icon)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className='grow system-md-regular text-text-secondary truncate'>
|
|
|
|
<div className='grow system-md-regular text-text-secondary truncate'>
|
|
|
|
|