FriendsOfFlarum / mason

Add custom fields to discussions
https://discuss.flarum.org/d/7028
MIT License
20 stars 14 forks source link

Use ComposerState fields to hold answer data #36

Closed clarkwinkelmann closed 2 years ago

clarkwinkelmann commented 2 years ago

Changes proposed in this pull request: Switches from a local variable on the DiscussionComposer to the official Flarum fields API on ComposerState.

This enables other extensions to read and modify the data, and most importantly for me this allows destroying and re-creating the Composer component without loosing the data which I need for another of my extensions.

Reviewers should focus on: Any backward compatibility necessary? Probably not.

I don't know of any extension would touch this value.

Screenshot No visual change

Confirmed