- fixed rejecting/approving for V2 of evaluation;
This commit is contained in:
@@ -415,6 +415,7 @@ const DomandaEditInstructorManager = () => {
|
|||||||
} else if (data.evaluationVersion === 'V2') {
|
} else if (data.evaluationVersion === 'V2') {
|
||||||
const newFormValues = getTransformedSubmitData();
|
const newFormValues = getTransformedSubmitData();
|
||||||
const submitData = {
|
const submitData = {
|
||||||
|
applicationStatus: 'APPROVED',
|
||||||
formFields: newFormValues,
|
formFields: newFormValues,
|
||||||
files: klona(data.files),
|
files: klona(data.files),
|
||||||
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
||||||
@@ -441,7 +442,6 @@ const DomandaEditInstructorManager = () => {
|
|||||||
}, [data]);
|
}, [data]);
|
||||||
|
|
||||||
const doReject = useCallback(() => {
|
const doReject = useCallback(() => {
|
||||||
console.log('doReject', data.evaluationVersion)
|
|
||||||
if (data.evaluationVersion === 'V1') {
|
if (data.evaluationVersion === 'V1') {
|
||||||
const submitData = {
|
const submitData = {
|
||||||
applicationStatus: 'REJECTED',
|
applicationStatus: 'REJECTED',
|
||||||
@@ -451,7 +451,7 @@ const DomandaEditInstructorManager = () => {
|
|||||||
note: data.note,
|
note: data.note,
|
||||||
motivation
|
motivation
|
||||||
}
|
}
|
||||||
console.log('doReject2', data.assignedApplicationId)
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setIsVisibleCompleteDialog(false);
|
setIsVisibleCompleteDialog(false);
|
||||||
ApplicationEvaluationService.updateEvaluation(
|
ApplicationEvaluationService.updateEvaluation(
|
||||||
@@ -463,6 +463,7 @@ const DomandaEditInstructorManager = () => {
|
|||||||
} else if (data.evaluationVersion === 'V2') {
|
} else if (data.evaluationVersion === 'V2') {
|
||||||
const newFormValues = getTransformedSubmitData();
|
const newFormValues = getTransformedSubmitData();
|
||||||
const submitData = {
|
const submitData = {
|
||||||
|
applicationStatus: 'REJECTED',
|
||||||
formFields: newFormValues,
|
formFields: newFormValues,
|
||||||
files: klona(data.files),
|
files: klona(data.files),
|
||||||
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
||||||
|
|||||||
@@ -462,6 +462,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
} else if (data.evaluationVersion === 'V2') {
|
} else if (data.evaluationVersion === 'V2') {
|
||||||
const newFormValues = getTransformedSubmitData();
|
const newFormValues = getTransformedSubmitData();
|
||||||
const submitData = {
|
const submitData = {
|
||||||
|
applicationStatus: 'REJECTED',
|
||||||
formFields: newFormValues,
|
formFields: newFormValues,
|
||||||
files: klona(data.files),
|
files: klona(data.files),
|
||||||
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
evaluationDocument: klona(data.evaluationDocument.map(o => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user