feat(StudyList): Disable study list link/route using 'showStudyList' config property (#597)

fix #574
This commit is contained in:
João Felipe de Medeiros Moreira authored and Erik Ziegler committed 2019-07-08 21:29:59 +02:00
1 parent 571dd5848f
commit 4b3994e788
10 files changed
+31 -9

No files matched your search

+5 -1
View File
@@ -71,6 +71,10 @@ class Header extends Component {
render() {
const { t } = this.props;
const showStudyList =
window.config.showStudyList !== undefined
? window.config.showStudyList
: true;
return (
<div className={`entry-header ${this.props.home ? 'header-big' : ''}`}>
<div className="header-left-box">
@@ -85,7 +89,7 @@ class Header extends Component {
{this.props.children}
{!this.props.home && (
{showStudyList && !this.props.home && (
<Link
className="header-btn header-studyListLinkSection"
to={{