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
2323S3_BUCKET = <your-s3-bucket>
2424S3_BUCKET_URL_BASE = <alt-for-s3-url>
2525SESSION_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 @@ -33,6 +33,8 @@ class AccountView extends React.Component {
3333 }
3434
3535 render ( ) {
36+ const accessTokensUIEnabled = window . process . env . UI_ACCESS_TOKEN_ENABLED ;
37+
3638 return (
3739 < div className = "user" >
3840 < Helmet >
@@ -50,7 +52,7 @@ class AccountView extends React.Component {
5052 < TabList >
5153 < div className = "tabs__titles" >
5254 < Tab > < h4 className = "tabs__title" > Account</ h4 > </ Tab >
53- < Tab > < h4 className = "tabs__title" > Access Tokens</ h4 > </ Tab >
55+ { accessTokensUIEnabled && < Tab > < h4 className = "tabs__title" > Access Tokens</ h4 > </ Tab > }
5456 </ div >
5557 </ TabList >
5658 < TabPanel >
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ export function renderIndex() {
3030 window.process.env.CLIENT = true;
3131 window.process.env.LOGIN_ENABLED = ${ process . env . LOGIN_ENABLED === 'false' ? false : true } ;
3232 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 } ;
3335 </script>
3436 </head>
3537 <body>
You can’t perform that action at this time.
0 commit comments