mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add problem submit limit (#366)
This commit is contained in:
1 parent
56396940fc
commit
add66f26cf
3 files changed
+39
-3
No files matched your search
@@ -17,6 +17,7 @@ export default function reducer(state = {
|
||||
isLoading: false,
|
||||
},
|
||||
isPosting: false,
|
||||
isWaiting: false,
|
||||
}, action) {
|
||||
switch (action.type) {
|
||||
case 'SCRATCHPAD_UI_CHANGE_SIZE': {
|
||||
@@ -67,6 +68,7 @@ export default function reducer(state = {
|
||||
return {
|
||||
...state,
|
||||
isPosting: false,
|
||||
isWaiting: true,
|
||||
};
|
||||
}
|
||||
case 'SCRATCHPAD_POST_PRETEST_REJECTED':
|
||||
@@ -75,6 +77,7 @@ export default function reducer(state = {
|
||||
return {
|
||||
...state,
|
||||
isPosting: false,
|
||||
isWaiting: true,
|
||||
};
|
||||
}
|
||||
case 'SCRATCHPAD_RECORDS_LOAD_SUBMISSIONS_PENDING': {
|
||||
@@ -105,6 +108,12 @@ export default function reducer(state = {
|
||||
},
|
||||
};
|
||||
}
|
||||
case 'SCRATCHPAD_WAITING_END': {
|
||||
return {
|
||||
...state,
|
||||
isWaiting: false,
|
||||
};
|
||||
}
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user