@@ -123,6 +187,8 @@ class SubmissionManagementPageContainer extends React.Component {
This will permanently remove all
files from our servers and can’t be undone.
You’ll have to upload all the files again in order to restore it.
+ Note that deleting the file may take a few minutes to propagate
+ through the Topcoder platform.
({
+ 'SMP/DELETE_SUBMISSION_INIT': (state, { payload }) => ({
+ ...state,
+ deletingSubmission: false,
+ deletionSucceed: false,
+ showModal: false,
+ toBeDeletedId: payload,
+ }),
+
+ 'SMP/DELETE_SUBMISSION_FAIL': state => ({
...state,
deletingSubmission: false,
showModal: false,
toBeDeletedId: '',
+ deletionSucceed: true,
+ }),
+
+ 'SMP/DELETE_SUBMISSION_DONE': (state, { payload }) => ({
+ ...state,
+ deletingSubmission: false,
+ showModal: false,
+ toBeDeletedId: payload,
+ deletionSucceed: true,
}),
}, _.defaults(initialState, {
showDetails: {},
showModal: false,
toBeDeletedId: '',
+ deletionSucceed: false,
}));
}