mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix validator
This commit is contained in:
1 parent
bc43b2fd4e
commit
caf6ce058f
5 files changed
+9
-6
No files matched your search
@@ -109,7 +109,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
<Toolbar>
|
||||
{canUsePretest && (
|
||||
<ToolbarButton
|
||||
disabled={this.props.isPosting || this.props.isRunning || this.props.pretestWaitSec}
|
||||
disabled={this.props.isPosting || this.props.isRunning || !!this.props.pretestWaitSec}
|
||||
className="scratchpad__toolbar__pretest"
|
||||
onClick={() => this.props.postPretest(this.props)}
|
||||
data-global-hotkey="f9"
|
||||
@@ -123,7 +123,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
</ToolbarButton>
|
||||
)}
|
||||
<ToolbarButton
|
||||
disabled={this.props.isPosting || this.props.submitWaitSec}
|
||||
disabled={this.props.isPosting || !!this.props.submitWaitSec}
|
||||
className="scratchpad__toolbar__submit"
|
||||
onClick={() => this.props.postSubmit(this.props)}
|
||||
data-global-hotkey="f10"
|
||||
|
||||
Reference in new issue
Block a user