From 1b793a78001963ce7d610c85ab8a36cccc277936 Mon Sep 17 00:00:00 2001 From: romanetar Date: Wed, 17 Jun 2026 15:00:43 +0200 Subject: [PATCH] feat(events): add draft state banner and Save as Incomplete flow for presentations only --- src/components/forms/event-form.js | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) 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() && ( + + )}
)}