mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 20:52:40 +00:00
Add local_environments to configuration files
Add `local` parameter to global `config` object to avoid repeating tests JWT key `secret` only added to global object `config` when local installation detected
This commit is contained in:
@@ -43,8 +43,6 @@ const Account = createClass({
|
||||
},
|
||||
|
||||
render : function(){
|
||||
const localEnvironments = ['local', 'docker'];
|
||||
|
||||
// Logged in
|
||||
if(global.account){
|
||||
return <Nav.dropdown>
|
||||
@@ -75,7 +73,7 @@ const Account = createClass({
|
||||
|
||||
// Logged out
|
||||
// LOCAL ONLY
|
||||
if(localEnvironments.includes(global.config.environment)) {
|
||||
if(global.config.local) {
|
||||
return <Nav.item color='teal' icon='fas fa-sign-in-alt' onClick={this.localLogin}>
|
||||
login
|
||||
</Nav.item>;
|
||||
|
||||
Reference in New Issue
Block a user