File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
kafka-ui-react-app/src/components/Brokers/Broker Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import BrokerLogdir from 'components/Brokers/Broker/BrokerLogdir/BrokerLogdir';
19
19
import BrokerMetrics from 'components/Brokers/Broker/BrokerMetrics/BrokerMetrics' ;
20
20
import Navbar from 'components/common/Navigation/Navbar.styled' ;
21
21
import PageLoader from 'components/common/PageLoader/PageLoader' ;
22
+ import { ActionNavLink } from 'components/common/ActionComponent' ;
23
+ import { Action , ResourceType } from 'generated-sources' ;
22
24
23
25
import Configs from './Configs/Configs' ;
24
26
@@ -71,12 +73,16 @@ const Broker: React.FC = () => {
71
73
>
72
74
Configs
73
75
</ NavLink >
74
- < NavLink
76
+ < ActionNavLink
75
77
to = { clusterBrokerMetricsPath ( clusterName , brokerId ) }
76
78
className = { ( { isActive } ) => ( isActive ? 'is-active' : '' ) }
79
+ permission = { {
80
+ resource : ResourceType . CLUSTERCONFIG ,
81
+ action : Action . VIEW ,
82
+ } }
77
83
>
78
84
Metrics
79
- </ NavLink >
85
+ </ ActionNavLink >
80
86
</ Navbar >
81
87
< Suspense fallback = { < PageLoader /> } >
82
88
< Routes >
You can’t perform that action at this time.
0 commit comments