Fixed bugs related to Save&Publish buttons in Editor for Post Updation and Post Creation.
Resolved correct statuses, which must be saved in system after clicking buttons in Editor.
Adjusted post-checking process connected with filling all required fields after clicking these buttons.
Refactored InformationModal file due to make the flow of showing and closing modal window clearer.
Refactored PostUpdation and PostCreation files due to avoid code duplication.
Adjusted test files, updated snapshots.
Summary of issue
The Save & Publish buttons in the Editor functioned in the incorrect way.
Summary of change
The Save & Publish buttons in the Editor function in the correct way.
Type of Pull Request *
Related links
Issue link [#519 The "Опублікувати" button doesn't work in the Editor] ( https://github.com/ita-social-projects/dokazovi-requirements/issues/519) [#537 'Material' page: The changes are not saved in the publication after clicking ‘Зберегти’ button] ( https://github.com/ita-social-projects/dokazovi-requirements/issues/537)
Story link #470 [Admin] «Опублікувати» button in the Editor #327 Add save button to editor
Description *
Fixed bugs related to Save&Publish buttons in Editor for Post Updation and Post Creation. Resolved correct statuses, which must be saved in system after clicking buttons in Editor. Adjusted post-checking process connected with filling all required fields after clicking these buttons. Refactored InformationModal file due to make the flow of showing and closing modal window clearer. Refactored PostUpdation and PostCreation files due to avoid code duplication. Adjusted test files, updated snapshots.
Summary of issue
The Save & Publish buttons in the Editor functioned in the incorrect way.
Summary of change
The Save & Publish buttons in the Editor function in the correct way.