perf: mute the start plugin request in setup page (halo-dev/console#897)

#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

隐藏在初始化页面启用插件时的错误提示,因为会重试三次,所以不需要提示。

```release-note
None
```
pull/3445/head
Ryan Wang 2023-03-01 12:08:18 +08:00 committed by GitHub
parent bd9c4dabf7
commit ff9081cccc
1 changed files with 9 additions and 4 deletions

View File

@ -44,10 +44,15 @@ const { mutate: pluginStartMutate } = useMutation({
pluginToUpdate.spec.enabled = true;
return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin({
name: plugin.metadata.name,
plugin: pluginToUpdate,
});
return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin(
{
name: plugin.metadata.name,
plugin: pluginToUpdate,
},
{
mute: true,
}
);
},
retry: 3,
});