Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 6143f5f

Browse files
authored
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 ```
1 parent edf51fb commit 6143f5f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/views/system/Setup.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,15 @@ const { mutate: pluginStartMutate } = useMutation({
4444
4545
pluginToUpdate.spec.enabled = true;
4646
47-
return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin({
48-
name: plugin.metadata.name,
49-
plugin: pluginToUpdate,
50-
});
47+
return apiClient.extension.plugin.updatepluginHaloRunV1alpha1Plugin(
48+
{
49+
name: plugin.metadata.name,
50+
plugin: pluginToUpdate,
51+
},
52+
{
53+
mute: true,
54+
}
55+
);
5156
},
5257
retry: 3,
5358
});

0 commit comments

Comments
 (0)