mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
fixes person resources
This commit is contained in:
@@ -7,7 +7,6 @@ const i18n = _createI18n(appMessages);
|
||||
|
||||
let appsOnPage = new Map();
|
||||
|
||||
|
||||
function loadDynamicPicker(element) {
|
||||
|
||||
let apps = element.querySelectorAll('[data-module="pick-dynamic"]');
|
||||
@@ -75,23 +74,23 @@ function loadDynamicPicker(element) {
|
||||
}
|
||||
|
||||
|
||||
// document.addEventListener('show-hide-show', function(e) {
|
||||
// console.log('creation event caught')
|
||||
// loadDynamicPicker(e.detail.container)
|
||||
// })
|
||||
document.addEventListener('show-hide-show', function(e) {
|
||||
console.log('creation event caught')
|
||||
loadDynamicPicker(e.detail.container)
|
||||
})
|
||||
|
||||
// document.addEventListener('show-hide-hide', function(e) {
|
||||
// console.log('hiding event caught')
|
||||
// e.detail.container.querySelectorAll('[data-module="pick-dynamic"]').forEach((el) => {
|
||||
// let uniqId = el.dataset.uniqid;
|
||||
// console.log(uniqId);
|
||||
// if (appsOnPage.has(uniqId)) {
|
||||
// appsOnPage.get(uniqId).unmount();
|
||||
// console.log('App has been unmounted')
|
||||
// appsOnPage.delete(uniqId);
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
document.addEventListener('show-hide-hide', function(e) {
|
||||
console.log('hiding event caught')
|
||||
e.detail.container.querySelectorAll('[data-module="pick-dynamic"]').forEach((el) => {
|
||||
let uniqId = el.dataset.uniqid;
|
||||
console.log(uniqId);
|
||||
if (appsOnPage.has(uniqId)) {
|
||||
appsOnPage.get(uniqId).unmount();
|
||||
console.log('App has been unmounted')
|
||||
appsOnPage.delete(uniqId);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function(e) {
|
||||
console.log('loaded event', e)
|
||||
|
Reference in New Issue
Block a user