core&ui: bug fix

This commit is contained in:
undefined committed 2021-07-17 18:23:33 +08:00
1 parent 177dcd6b80
commit e9d1988cba
5 files changed
+22 -21

No files matched your search

@@ -65,7 +65,7 @@ const mapDispatchToProps = (dispatch) => ({
});
},
handleClickRefresh() {
this.loadSubmissions();
if (this.props.recordsVisible) this.loadSubmissions();
},
});
@@ -75,7 +75,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
};
componentDidMount() {
this.props.loadSubmissions();
if (this.props.recordsVisible) this.props.loadSubmissions();
}
render() {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.12.23",
"version": "4.12.24",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -23,8 +23,8 @@ const page = new NamedPage('manage_user_import', () => {
}
}
$('[name="preview"]').click(() => post(true));
$('[name="submit"]').click(() => post(false));
$('[name="preview"]').on('click', () => post(true));
$('[name="submit"]').on('click', () => post(false));
});
export default page;