From f0d6ccf2d3315cbf9ded47b6cf2d9a29b9ae4aef Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Mon, 27 Oct 2025 16:24:00 +0100 Subject: [PATCH] - updated condition for voting for files; --- src/pages/DomandaEditInstructorManager/index.js | 6 +++--- src/pages/DomandaEditPreInstructor/index.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js index e64e439..34e5e81 100644 --- a/src/pages/DomandaEditInstructorManager/index.js +++ b/src/pages/DomandaEditInstructorManager/index.js @@ -697,9 +697,9 @@ const DomandaEditInstructorManager = () => { } const shouldDisableField = useCallback((fieldName) => { - return !['EVALUATION', 'ADMISSIBLE'].includes(data.applicationStatus) - || (['ADMISSIBLE', 'TECHNICAL_EVALUATION'].includes(data.applicationStatus) && !['criteria', 'note'].includes(fieldName)) - || (fieldName === 'files' && !isEmpty(data.amendmentDetails)) + return ['EXPIRED', 'CLOSE'].includes(data.status) + || (['ADMISSIBLE', 'TECHNICAL_EVALUATION', 'TECHNICAL_EVALUATION', 'AWAITING_TECHNICAL_EVALUATION'].includes(data.applicationStatus) + && !['criteria', 'note', 'files', 'amendmentDetails'].includes(fieldName)) }, [data.applicationStatus]); const headerCompleteDialog = () => { diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js index b4348b1..53896d7 100644 --- a/src/pages/DomandaEditPreInstructor/index.js +++ b/src/pages/DomandaEditPreInstructor/index.js @@ -697,9 +697,9 @@ const DomandaEditPreInstructor = () => { } const shouldDisableField = useCallback((fieldName) => { - return !['EVALUATION', 'ADMISSIBLE'].includes(data.applicationStatus) - || (['ADMISSIBLE', 'TECHNICAL_EVALUATION'].includes(data.applicationStatus) && !['criteria', 'note'].includes(fieldName)) - || (fieldName === 'files' && !isEmpty(data.amendmentDetails)) + return ['EXPIRED', 'CLOSE'].includes(data.status) + || (['ADMISSIBLE', 'TECHNICAL_EVALUATION', 'TECHNICAL_EVALUATION', 'AWAITING_TECHNICAL_EVALUATION'].includes(data.applicationStatus) + && !['criteria', 'note', 'files', 'amendmentDetails'].includes(fieldName)) }, [data.applicationStatus]); const headerCompleteDialog = () => {