mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: scratchpad sidebar api
This commit is contained in:
1 parent
60fc805c84
commit
997b403db3
5 files changed
+38
-4
No files matched your search
@@ -16,6 +16,7 @@ import Toolbar, {
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
pretestVisible: state.ui.pretest.visible,
|
||||
sidebarVisible: state.ui.sidebar.visible,
|
||||
recordsVisible: state.ui.records.visible,
|
||||
isPosting: state.ui.isPosting,
|
||||
isRunning: state.pretest.isRunning,
|
||||
@@ -183,6 +184,16 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
{i18n('Records')}
|
||||
</ToolbarButton>
|
||||
)}
|
||||
{/* <ToolbarButton
|
||||
activated={this.props.sidebarVisible}
|
||||
onClick={() => this.props.togglePanel('sidebar')}
|
||||
data-global-hotkey="alt+w"
|
||||
data-tooltip={`${i18n('Toggle Sidebar')} (Alt+L)`}
|
||||
>
|
||||
<Icon name="edit" />
|
||||
{' '}
|
||||
{i18n('Pretest')}
|
||||
</ToolbarButton> */}
|
||||
</Toolbar>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user