feat(StudyList): Disable study list link/route using 'showStudyList' config property (#597)
fix #574
This commit is contained in:
1 parent
571dd5848f
commit
4b3994e788
10 files changed
+31
-9
No files matched your search
@@ -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={{
|
||||
|
||||
Reference in new issue
Block a user