This is an automated email from the ASF dual-hosted git repository.
hefengen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 5aee5f97 fix update plugin (#517)
5aee5f97 is described below
commit 5aee5f979bcee5256ff916f8fbb85c65e6e67ae0
Author: eye-gu <[email protected]>
AuthorDate: Mon Dec 30 21:08:52 2024 +0800
fix update plugin (#517)
---
src/routes/Plugin/Common/index.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/routes/Plugin/Common/index.js
b/src/routes/Plugin/Common/index.js
index d841a7a8..245b93ae 100755
--- a/src/routes/Plugin/Common/index.js
+++ b/src/routes/Plugin/Common/index.js
@@ -34,8 +34,10 @@ import Selector from "./Selector";
import Rule from "./Rule";
import { getCurrentLocale, getIntlContent } from "../../../utils/IntlUtils";
import AuthButton from "../../../utils/AuthButton";
-import { getUpdateModal } from "../../../utils/plugin";
-import { updateNamespacePluginsEnabledByNamespace } from
"../../../utils/namespacePlugin";
+import {
+ getUpdateModal,
+ updateNamespacePluginsEnabledByNamespace,
+} from "../../../utils/namespacePlugin";
const { Search } = Input;
const { Title } = Typography;
@@ -398,7 +400,8 @@ export default class Common extends Component {
: "";
const plugin = this.getPlugin(plugins, pluginName);
getUpdateModal({
- pluginId: plugin.pluginId,
+ id: plugin.id,
+ namespaceId: plugin.namespaceId,
dispatch,
callback: (popup) => {
this.setState({ popup });