-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Remove TODO for passing state #946
base: master
Are you sure you want to change the base?
Conversation
3195fe5
to
00822c0
Compare
data-namespace-typo3-fluid="true" | ||
lang="en"> | ||
|
||
<script>{docConfiguration -> f:format.raw()}</script> |
Check notice
Code scanning / CodeQL
Syntax error Note
window.addEventListener('tx-dlf-documentLoaded', (e) => { | ||
// TODO(client-side): When there are multiple instances of metadata plugin? | ||
const container = document.querySelector('.dlf-metadata-container'); | ||
const rootline = {settings.rootline}; |
Check notice
Code scanning / CodeQL
Syntax error Note
// NOTE: The navigation plugin may be instantiated multiple times, even on a single page view | ||
window.addEventListener('tx-dlf-documentLoaded', e => { | ||
const controller = e.detail.docController; | ||
const features = {features -> f:format.json() -> f:format.raw()}; |
Check notice
Code scanning / CodeQL
Syntax error Note
- Remove unused import - Replace tabs with spaces
This will allow the navigation plugin to access the document, e.g., to get the number of pages.
On large documents, rendering metadata of all sections can take a considerable amount of time. Instead, allow to just render the current metadata, and fetch the additional metadata in an API call.
- remove dead variables - fix check for mime type
- removed unused e param from onStateChanged - make fetchMetadata async so no spinner is needed
- remove unused paramaters - decrease complexity of updateNavigationControls
Error: `Inventory link with key "t3tsref:data-type-page-id" (data-type-page-id) not found.`
…rollers Logically the document should not be displayed if its controller is not loaded
It looks like the page and simultaneousPages can be undefined, so better to avoid overwrite data with undefined
00822c0
to
5233709
Compare
It looks like the page and simultaneousPages can be undefined, so better to avoid overwrite data with undefined.
Eventually @dikastes could tell us more in this topic.
Depends on #878