mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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>
|
</select>
|
||||||
</ToolbarItem>
|
</ToolbarItem>
|
||||||
<ToolbarSplit />
|
<ToolbarSplit />
|
||||||
{UiContext.pdoc.config?.type === 'default' && (
|
{['default', 'fileio'].includes(UiContext.pdoc.config?.type) && (
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
activated={this.props.pretestVisible}
|
activated={this.props.pretestVisible}
|
||||||
onClick={() => this.props.togglePanel('pretest')}
|
onClick={() => this.props.togglePanel('pretest')}
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ export default function reducer(state = {
|
|||||||
size: '50%',
|
size: '50%',
|
||||||
},
|
},
|
||||||
pretest: {
|
pretest: {
|
||||||
visible: localStorage.getItem('scratchpad/pretest') === 'true',
|
visible: ['default', 'fileio'].includes(UiContext.pdoc.config?.type)
|
||||||
|
? localStorage.getItem('scratchpad/pretest') === 'true'
|
||||||
|
: false,
|
||||||
size: 200,
|
size: 200,
|
||||||
},
|
},
|
||||||
records: {
|
records: {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.22.11",
|
"version": "4.22.12",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user