diff --git a/src/components/forms/event-form.js b/src/components/forms/event-form.js index 376fe3687..ced53818e 100644 --- a/src/components/forms/event-form.js +++ b/src/components/forms/event-form.js @@ -729,6 +729,11 @@ class EventForm extends React.Component { onSaveIncomplete({ ...entity }); } + isPresentation() { + const { entity } = this.state; + return entity.class_name === "Presentation"; + } + isNew() { const { entity } = this.state; return !entity.id; @@ -1081,12 +1086,14 @@ class EventForm extends React.Component { ]; const missingDraftFields = - this.isNew() || this.isComplete() ? [] : this.getMissingDraftFields(); + !this.isPresentation() || this.isNew() || this.isComplete() + ? [] + : this.getMissingDraftFields(); return (
- {!this.isNew() && !this.isComplete() && ( + {this.isPresentation() && !this.isNew() && !this.isComplete() && (
- {!this.isNew() && !this.isComplete() && ( - - )} + {this.isPresentation() && + !this.isNew() && + !this.isComplete() && ( + + )}
)}