Skip to content

Commit

Permalink
display pending for contributing fields on submit page #1798
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Sep 13, 2024
1 parent f87562a commit c2f7483
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dataedit/static/peer_review/opr_contributor.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function renderSummaryPageFields() {

if (isEmptyValue(fieldValue) && !processedFields.has(uniqueFieldIdentifier)) {
emptyFields.push({ fieldName, fieldValue, fieldCategory: "emptyFields" });
} else if (!found && fieldState !== 'ok' && !isEmptyValue(fieldValue) && !processedFields.add(uniqueFieldIdentifier)) {
} else if (!found && fieldState !== 'ok' && !isEmptyValue(fieldValue)) {
missingFields.push({ fieldName, fieldValue, fieldCategory });
processedFields.add(uniqueFieldIdentifier);
}
Expand Down Expand Up @@ -478,9 +478,10 @@ function renderSummaryPageFields() {
clearSummaryTable();

let allData = [];
allData.push(...missingFields.map((item) => ({...item, fieldStatus: 'Missing'})));
allData.push(...acceptedFields.map((item) => ({...item, fieldStatus: 'Accepted'})));
allData.push(...missingFields.map((item) => ({...item, fieldStatus: 'Pending'})));
allData.push(...rejectedFields.map((item) => ({...item, fieldStatus: 'Rejected'})));
allData.push(...acceptedFields.map((item) => ({...item, fieldStatus: 'Accepted'})));

allData.push(...emptyFields.map((item) => ({...item, fieldStatus: 'Empty'})));

let table = generateTable(allData);
Expand Down

0 comments on commit c2f7483

Please sign in to comment.