Skip to content

Commit c2121d7

Browse files
authored
remove 'resource' button in namespacePlugin (#493)
* remove 'resource' button in namespacePlugin * fix es lint
1 parent ae241b2 commit c2121d7

File tree

1 file changed

+2
-22
lines changed
  • src/routes/System/NamespacePlugin

1 file changed

+2
-22
lines changed

src/routes/System/NamespacePlugin/index.js

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,6 @@ export default class NamespacePlugin extends Component {
160160
});
161161
};
162162

163-
resourceClick = (record) => {
164-
// code here...
165-
const { dispatch } = this.props;
166-
const { name, role, sort, config, pluginId, enabled } = record;
167-
dispatch({
168-
type: "plugin/createPluginResource",
169-
payload: {
170-
name,
171-
role,
172-
sort,
173-
config,
174-
id: pluginId,
175-
enabled,
176-
},
177-
callback: () => {
178-
refreshAuthMenus({ dispatch });
179-
},
180-
});
181-
};
182-
183163
searchOnchange = (e) => {
184164
this.setState({ name: e.target.value }, this.query);
185165
};
@@ -422,7 +402,7 @@ export default class NamespacePlugin extends Component {
422402
{getIntlContent("SHENYU.SYSTEM.EDITOR")}
423403
</div>
424404
</AuthButton>
425-
<AuthButton perms="system:namespacePlugin:resource">
405+
{/* <AuthButton perms="system:namespacePlugin:resource">
426406
<div
427407
className="edit"
428408
onClick={() => {
@@ -431,7 +411,7 @@ export default class NamespacePlugin extends Component {
431411
>
432412
{getIntlContent("SHENYU.BUTTON.SYSTEM.RESOURCE")}
433413
</div>
434-
</AuthButton>
414+
</AuthButton> */}
435415
</div>
436416
);
437417
},

0 commit comments

Comments
 (0)