From 08c3bfe7fb25d5308f366948d120b19052f7e79b Mon Sep 17 00:00:00 2001 From: diminator Date: Tue, 29 Sep 2015 16:48:46 +0200 Subject: [PATCH] acl for powered_by --- js/components/header.js | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/js/components/header.js b/js/components/header.js index f227313f..64224d8c 100644 --- a/js/components/header.js +++ b/js/components/header.js @@ -64,31 +64,33 @@ let Header = React.createClass({ }, getLogo(){ - let logo = ( + if (this.state.whitelabel && this.state.whitelabel.logo){ + return ; + } + return ( ascribe - ); - if (this.state.whitelabel && this.state.whitelabel.logo){ - logo = ; - } - return logo; + + ); }, getPoweredBy(){ - if (this.state.whitelabel && this.state.whitelabel.logo) { - return ( -
  • - - {getLangText('powered by')} - ascribe - - -
  • - ); - } - return null; + return ( + +
  • + + {getLangText('powered by')} + ascribe + + +
  • +
    + ); }, + onChange(state) { this.setState(state);