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

Commit

Permalink
perf: mute the start plugin request in setup page (#897)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind improvement

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

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

```release-note
None
```
  • Loading branch information
ruibaby authored Mar 1, 2023
1 parent edf51fb commit 6143f5f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/views/system/Setup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

1 comment on commit 6143f5f

@vercel
Copy link

@vercel vercel bot commented on 6143f5f Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-halo-dev.vercel.app
ui-git-main-halo-dev.vercel.app
halo-admin-ui.vercel.app

Please sign in to comment.