mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: ignore records popup when record not visible
This commit is contained in:
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_PRETEST_FULFILLED':
|
||||||
case 'SCRATCHPAD_POST_SUBMIT_FULFILLED': {
|
case 'SCRATCHPAD_POST_SUBMIT_FULFILLED': {
|
||||||
Notification.success(i18n('Submitted.'));
|
Notification.success(i18n('Submitted.'));
|
||||||
if (action.type === 'SCRATCHPAD_POST_SUBMIT_FULFILLED') {
|
if (action.type === 'SCRATCHPAD_POST_SUBMIT_FULFILLED' && UiContext.canViewRecord) {
|
||||||
state.records.visible = true;
|
state.records.visible = true;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.34.22",
|
"version": "4.34.23",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user