mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core&ui: bug fix
This commit is contained in:
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,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;
|
||||
Reference in new issue
Block a user