diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-12-23 13:20:51 -0800 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-12-23 13:20:51 -0800 |
commit | 57552e7b8640bbb6896e8d484aea9656b264e548 (patch) | |
tree | a3d879c4c1fa8a330b64860a9d7e1cc1ecf506c7 /src/client/views/MainView.tsx | |
parent | e7ebcd064a89c3f7c246bca680cea9634f87625b (diff) |
move lock/hide buttons to StyleProvider
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 5eb8429f0..daa059a49 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -58,7 +58,7 @@ import { PDFMenu } from './pdf/PDFMenu'; import { PreviewCursor } from './PreviewCursor'; import { PropertiesView } from './PropertiesView'; import { SearchBox } from './search/SearchBox'; -import { DefaultStyleProvider } from './StyleProvider'; +import { DefaultStyleProvider, DashboardStyleProvider } from './StyleProvider'; const _global = (window /* browser */ || global /* node */) as any; @observer @@ -296,6 +296,7 @@ export class MainView extends React.Component { } @computed get flyout() { + console.log(this._sidebarContent.title); return !this._flyoutWidth ? <div className={`mainView-libraryFlyout-out`}> {this.docButtons} </div> : @@ -314,7 +315,7 @@ export class MainView extends React.Component { PanelHeight={this.getContentsHeight} renderDepth={0} focus={emptyFunction} - styleProvider={DefaultStyleProvider} + styleProvider={this._sidebarContent.title === "My Dashboards" ? DashboardStyleProvider : DefaultStyleProvider} parentActive={returnTrue} whenActiveChanged={emptyFunction} bringToFront={emptyFunction} |