mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix pretest display
This commit is contained in:
1 parent
35425f74e2
commit
a03ee5ec2c
3 files changed
+5
-3
No files matched your search
@@ -156,7 +156,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
</select>
|
||||
</ToolbarItem>
|
||||
<ToolbarSplit />
|
||||
{UiContext.pdoc.config?.type === 'default' && (
|
||||
{['default', 'fileio'].includes(UiContext.pdoc.config?.type) && (
|
||||
<ToolbarButton
|
||||
activated={this.props.pretestVisible}
|
||||
onClick={() => this.props.togglePanel('pretest')}
|
||||
|
||||
@@ -6,7 +6,9 @@ export default function reducer(state = {
|
||||
size: '50%',
|
||||
},
|
||||
pretest: {
|
||||
visible: localStorage.getItem('scratchpad/pretest') === 'true',
|
||||
visible: ['default', 'fileio'].includes(UiContext.pdoc.config?.type)
|
||||
? localStorage.getItem('scratchpad/pretest') === 'true'
|
||||
: false,
|
||||
size: 200,
|
||||
},
|
||||
records: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.22.11",
|
||||
"version": "4.22.12",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user