File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
client/modules/User/pages Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ PORT=8000
23
23
S3_BUCKET = <your-s3-bucket>
24
24
S3_BUCKET_URL_BASE = <alt-for-s3-url>
25
25
SESSION_SECRET = whatever_you_want_this_to_be_it_only_matters_for_production
26
+ UI_ACCESS_TOKEN_ENABLED = false
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ class AccountView extends React.Component {
36
36
}
37
37
38
38
render ( ) {
39
+ const accessTokensUIEnabled = window . process . env . UI_ACCESS_TOKEN_ENABLED ;
40
+
39
41
return (
40
42
< div className = "user" >
41
43
< Helmet >
@@ -53,7 +55,7 @@ class AccountView extends React.Component {
53
55
< TabList >
54
56
< div className = "tabs__titles" >
55
57
< Tab > < h4 className = "tabs__title" > Account</ h4 > </ Tab >
56
- < Tab > < h4 className = "tabs__title" > Access Tokens</ h4 > </ Tab >
58
+ { accessTokensUIEnabled && < Tab > < h4 className = "tabs__title" > Access Tokens</ h4 > </ Tab > }
57
59
</ div >
58
60
</ TabList >
59
61
< TabPanel >
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ export function renderIndex() {
30
30
window.process.env.CLIENT = true;
31
31
window.process.env.LOGIN_ENABLED = ${ process . env . LOGIN_ENABLED === 'false' ? false : true } ;
32
32
window.process.env.EXAMPLES_ENABLED = ${ process . env . EXAMPLES_ENABLED === 'false' ? false : true } ;
33
+ window.process.env.EXAMPLES_ENABLED = ${ process . env . EXAMPLES_ENABLED === 'false' ? false : true } ;
34
+ window.process.env.UI_ACCESS_TOKEN_ENABLED = ${ process . env . UI_ACCESS_TOKEN_ENABLED === 'false' ? false : true } ;
33
35
</script>
34
36
</head>
35
37
<body>
You can’t perform that action at this time.
0 commit comments