fix(explore): only show split close button when split is active (#16203)

This commit is contained in:
Dominik Prokop 2019-03-25 16:44:09 +01:00 committed by GitHub
parent 8ef1c75aa1
commit 9655eeda18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,9 +108,11 @@ export class UnConnectedExploreToolbar extends PureComponent<Props, {}> {
</span>
)}
</div>
<a className="explore-toolbar-header-close" onClick={() => this.props.closeSplit(exploreId)}>
<i className="fa fa-times fa-fw" />
</a>
{splitted && (
<a className="explore-toolbar-header-close" onClick={() => this.props.closeSplit(exploreId)}>
<i className="fa fa-times fa-fw" />
</a>
)}
</div>
</div>
<div className="explore-toolbar-item">