fix: plugin task

pull/12372/head
StyleZhang 2 years ago
parent 13d3f67746
commit 582c7ce348

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

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

Loading…
Cancel
Save