Refactor components (WIP)

This commit is contained in:
2025-09-01 17:20:47 +02:00
parent 40cc2ef88b
commit 77d42a2c27
7 changed files with 214 additions and 165 deletions

View File

@@ -212,6 +212,8 @@ UI.openUnderwaterModal = function (data, selector) {
// For Stimulus biblio_controller
//GisState.bibliography = underwater;
underwater.render().then(html => modal.querySelector('#underwater-sheet').innerHTML = html);
underwater.renderDocs().then(html => modal.querySelector('#documents').innerHTML = html);
underwater.setImages(modal.querySelector('#photos'), this.imageGallery);
modal.classList.add('is-active');
}
/**