diff --git a/src/components/forms/event-form.js b/src/components/forms/event-form.js index ced53818e..caa9b7882 100644 --- a/src/components/forms/event-form.js +++ b/src/components/forms/event-form.js @@ -747,6 +747,11 @@ class EventForm extends React.Component { ); } + isDraftComplete() { + const { entity } = this.state; + return entity?.status === "NonReceived" && entity?.progress === "COMPLETE"; + } + getMissingDraftFields() { const { entity } = this.state; const missing = []; @@ -754,16 +759,7 @@ class EventForm extends React.Component { if (!entity.title) missing.push("Title"); if (!entity.type_id) missing.push("Activity Type"); if (!entity.track_id) missing.push("Activity Category"); - - if (!entity.type_id || this.shouldShowField("allows_publishing_dates")) { - if (!entity.start_date) missing.push("Start Date"); - if (!entity.end_date) missing.push("End Date"); - if (!entity.duration) missing.push("Duration"); - } - - if (!entity.type_id || this.isEventType(EVENT_TYPE_PRESENTATION)) { - if (!entity.disclaimer_accepted) missing.push("Disclaimer Accepted"); - } + if (!entity.speakers?.length) missing.push("Speakers"); return missing; } @@ -1085,15 +1081,17 @@ class EventForm extends React.Component { { label: "Submission", value: "Submission" } ]; + const showDraftUI = + this.isPresentation() && !this.isNew() && !this.isComplete(); const missingDraftFields = - !this.isPresentation() || this.isNew() || this.isComplete() - ? [] - : this.getMissingDraftFields(); + showDraftUI && !this.isDraftComplete() + ? this.getMissingDraftFields() + : []; return (