Browse Source

perf: mute the start plugin request in setup page (#897)

#### What type of PR is this?

/kind improvement

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

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

```release-note
None
```
pull/901/head v2.3.0
Ryan Wang 2 years ago committed by GitHub
parent
commit
6143f5f218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      src/views/system/Setup.vue

13
src/views/system/Setup.vue

@ -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,
});

Loading…
Cancel
Save