ui: ignore records popup when record not visible

This commit is contained in:
undefined committed 2022-03-25 09:07:17 +08:00
1 parent 4f46305d21
commit 510ca21cf5
2 files changed
+2 -2

No files matched your search

@@ -61,7 +61,7 @@ export default function reducer(state = {
case 'SCRATCHPAD_POST_PRETEST_FULFILLED':
case 'SCRATCHPAD_POST_SUBMIT_FULFILLED': {
Notification.success(i18n('Submitted.'));
if (action.type === 'SCRATCHPAD_POST_SUBMIT_FULFILLED') {
if (action.type === 'SCRATCHPAD_POST_SUBMIT_FULFILLED' && UiContext.canViewRecord) {
state.records.visible = true;
}
return {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.34.22",
"version": "4.34.23",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",