Commit b85261e7 by Kornkitt Poolsup

dashboard navigations not allowed

parent f8b2f696
...@@ -44,7 +44,7 @@ export class DashNav extends PureComponent<Props> { ...@@ -44,7 +44,7 @@ export class DashNav extends PureComponent<Props> {
} }
onDahboardNameClick = () => { onDahboardNameClick = () => {
appEvents.emit(CoreEvents.showDashSearch); // appEvents.emit(CoreEvents.showDashSearch);
}; };
onFolderNameClick = () => { onFolderNameClick = () => {
...@@ -111,18 +111,15 @@ export class DashNav extends PureComponent<Props> { ...@@ -111,18 +111,15 @@ export class DashNav extends PureComponent<Props> {
<> <>
<div> <div>
<div className="navbar-page-btn"> <div className="navbar-page-btn">
{!this.isInFullscreenOrSettings && <i className="gicon gicon-dashboard" />} <i className="gicon gicon-dashboard" />
{haveFolder && ( {haveFolder && (
<> <>
<a className="navbar-page-btn__folder" onClick={this.onFolderNameClick}> <a className="navbar-page-btn__folder" onClick={this.onFolderNameClick}>
{folderTitle} {folderTitle}
</a> </a>
<i className="fa fa-chevron-right navbar-page-btn__folder-icon" />
</> </>
)} )}
<a onClick={this.onDahboardNameClick}> <a onClick={this.onDahboardNameClick}>{dashboard.title}</a>
{dashboard.title} <i className="fa fa-caret-down navbar-page-btn__search" />
</a>
</div> </div>
</div> </div>
{this.isSettings && <span className="navbar-settings-title">&nbsp;/ Settings</span>} {this.isSettings && <span className="navbar-settings-title">&nbsp;/ Settings</span>}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment