fix(ui): collection in book settings tab
Targets: #1293 (closed) - Collection not appearing on the settings tab for XML/PDF wholebooks
Changes proposed
Earlier collectionOptions
used to be passed from BookComponentManager
down to the BookSettings
tab. This was not happening as we refactored to use ui/Pages/Bookmanager/BookComponent/asWholeBook/BookComponent.page.js
.
In this MR, I've moved the code to calculate the collectionOptions
used in BookComponentManager
to BookComponent.page
. Finally the calculate collectionOptions
are passed to the children.