fix(chore): save new event even with empty title#8556
Conversation
Signed-off-by: Maximilian Martin <maximilian_martin@gmx.de>
|
Thank for the PR @max65482 @odzhychko What do you think? The fix is correct. But I am wondering if that is the correct behavior, should we allow someone to save an event with a empty title? I mean there is a minimum amount of in formation required to have a use full event displayed in the calendar. Would any one ever want a event with no title? |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Hm, I still think it is (the more) correct behavior, because an event created like this still has a date and a time. The next best behavior, I can think of, would be to disable the save button until something has changed. |
Okay, if we let people create events with out a title we should force a generic time at creation time (In my option)
That might the best solution, the only problem is the mark dirty trigger (this.calendarObjectInstance.eventComponent.markDirty()) is not reactive, I believe. I believe all the components and properties in eventComponent are not reactive.Would need to double check |
I found no way to create an event without a date. A time is automatically set, when
|
Fixes #8543