ui: pageLoader: support moduleName

This commit is contained in:
undefined committed 2022-03-15 13:59:16 +08:00
1 parent 0569a98739
commit ab3cad57b8
6 files changed
+56 -33

No files matched your search

@@ -55,16 +55,15 @@ export default function reducer(state = {
case 'SCRATCHPAD_POST_SUBMIT_PENDING': {
return {
...state,
records: {
...state.records,
visible: true,
},
isPosting: true,
};
}
case 'SCRATCHPAD_POST_PRETEST_FULFILLED':
case 'SCRATCHPAD_POST_SUBMIT_FULFILLED': {
Notification.success(i18n('Submitted.'));
if (action.type === 'SCRATCHPAD_POST_SUBMIT_FULFILLED') {
state.records.visible = true;
}
return {
...state,
isPosting: false,