diff --git a/src/dashboard/src/pages/Operator/Node/Node.js b/src/dashboard/src/pages/Operator/Node/Node.js index 4759c3619..ca156da0d 100644 --- a/src/dashboard/src/pages/Operator/Node/Node.js +++ b/src/dashboard/src/pages/Operator/Node/Node.js @@ -23,6 +23,7 @@ import moment from 'moment'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import StandardTable from '@/components/StandardTable'; import styles from '../styles.less'; +import { getAuthority } from '@/utils/authority'; const FormItem = Form.Item; const { Option } = Select; @@ -350,6 +351,8 @@ class Node extends PureComponent { render() { const { selectedRows, registerUserFormVisible, targetNodeId } = this.state; + const userRole = getAuthority()[0]; + const { node: { nodes, pagination }, loadingNodes, @@ -485,9 +488,12 @@ class Node extends PureComponent {
- + { + userRole !== 'operator' && + + }