Images for not conserved

This commit is contained in:
2025-04-28 12:36:09 +02:00
parent 334cab6e4f
commit 0ca98e2b6d
3 changed files with 63 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ import { SiteSheet } from './components/SiteSheet.js';
import { SiteDocuments } from './components/SiteDocuments.js';
import { SiteSurveys } from './components/SiteSurveys.js';
import { SiteMedia } from './components/SiteMedia.js';
import { NotConservedSheet } from './components/NotConservedSheet.js';
import { NotConserved } from './components/NotConserved.js';
import { Finding } from './components/Finding.js';
import { Prehistoric } from './components/Prehistoric.js';
@@ -162,12 +162,13 @@ UI.openSiteModal = function (data, selector) {
UI.openNotConserModal = function (data, selector) {
const modal = document.querySelector(selector);
let sheet = new NotConservedSheet();
sheet.siteData = data;
let notConserved = new NotConserved();
notConserved.siteData = data;
// For Stimulus biblio_controller
window.Biblio = sheet;
window.Biblio = notConserved;
sheet.render().then(html => modal.querySelector('#not-conser-sheet').innerHTML = html);
notConserved.render().then(html => modal.querySelector('#not-conserved-sheet').innerHTML = html);
notConserved.setImages(modal.querySelector('#photos'), this.imageGallery);
modal.classList.add('is-active');
}
/**