1
1
import * as React from 'react' ;
2
- // import { Link } from 'react-router-dom';
2
+ import { Link } from 'react-router-dom' ;
3
3
import { connect } from 'react-redux' ;
4
4
import * as _ from 'lodash-es' ;
5
5
6
- // import { OAuthModel } from '../models';
6
+ import { OAuthModel } from '../models' ;
7
7
import { userStateToProps } from '../ui/ui-reducers' ;
8
8
import { KUBE_ADMIN_USERNAME } from '../const' ;
9
- // import { resourcePathFromModel } from './utils/resource-link';
9
+ import { resourcePathFromModel } from './utils/resource-link' ;
10
10
11
- // const oAuthResourcePath = resourcePathFromModel(OAuthModel, 'cluster');
11
+ const oAuthResourcePath = resourcePathFromModel ( OAuthModel , 'cluster' ) ;
12
12
13
13
export const KubeAdminNotifier = connect ( userStateToProps ) ( ( { user} ) => {
14
14
const username = _ . get ( user , 'metadata.name' ) ;
@@ -17,8 +17,7 @@ export const KubeAdminNotifier = connect(userStateToProps)(({user}) => {
17
17
< div className = "co-global-notification__content" >
18
18
< p className = "co-global-notification__text" >
19
19
You are logged in as a temporary administrative user.
20
- { /* Temporarily disable the link since it's not yet possible to add identity providers. */ }
21
- { /* Update the <Link to={oAuthResourcePath}>cluster OAuth configuration</Link> to allow others to log in. */ }
20
+ Update the < Link to = { oAuthResourcePath } > cluster OAuth configuration</ Link > to allow others to log in.
22
21
</ p >
23
22
</ div >
24
23
</ div >
0 commit comments