core&ui: support set pretest to false

This commit is contained in:
undefined committed 2022-03-13 18:16:57 +08:00
1 parent 9afeae7047
commit 7df8e0c748
5 files changed
+8 -2

No files matched your search

@@ -99,6 +99,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
if (UiContext.pdoc.config?.type === 'remote_judge') {
if (window.LANGS[this.props.editorLang].pretest) canUsePretest = true;
}
if (window.LANGS[this.props.editorLang].pretest === false) canUsePretest = false;
return (
<Toolbar>
{canUsePretest && (