fix: plugin task

This commit is contained in:
StyleZhang 2024-11-12 18:28:34 +08:00
parent 13d3f67746
commit 582c7ce348
2 changed files with 4 additions and 7 deletions

View File

@ -84,9 +84,6 @@ const PluginTasks = () => {
isInstalling && (
<ProgressCircle
percentage={runningPlugins.length / totalPluginsLength * 100}
circleFillColor='fill-components-progress-brand-bg'
sectorFillColor='fill-components-progress-error-bg'
circleStrokeColor='stroke-components-progress-error-bg'
/>
)
}
@ -95,8 +92,8 @@ const PluginTasks = () => {
<ProgressCircle
percentage={runningPlugins.length / totalPluginsLength * 100}
circleFillColor='fill-components-progress-brand-bg'
sectorFillColor='fill-components-progress-error-bg'
circleStrokeColor='stroke-components-progress-error-bg'
sectorFillColor='fill-components-progress-error-border'
circleStrokeColor='stroke-components-progress-error-border'
/>
)
}
@ -135,7 +132,7 @@ const PluginTasks = () => {
<Button
size='small'
variant='ghost-accent'
onClick={() => handleClearErrorPlugin(errorPlugin.taskId, errorPlugin.plugin_id)}
onClick={() => handleClearErrorPlugin(errorPlugin.taskId, errorPlugin.plugin_unique_identifier)}
>
{t('common.operation.clear')}
</Button>

View File

@ -120,7 +120,7 @@ export const useMutationPluginsFromMarketplace = () => {
const usePluginTaskListKey = [NAME_SPACE, 'pluginTaskList']
export const usePluginTaskList = () => {
const [enabled, setEnabled] = useState(true)
const [enabled, setEnabled] = useState(false)
const {
data,
isFetched,