feat: integrate dashboard modules and document history
This commit is contained in:
@@ -167,6 +167,11 @@ async function loadActiveSeatMapLayout(force = false) {
|
||||
}
|
||||
}
|
||||
|
||||
function handleSeatMapLayoutUpdated() {
|
||||
seatMapLayoutCache = null;
|
||||
loadMembers().catch(() => { });
|
||||
}
|
||||
|
||||
function getMemberSeatInfo(layout, memberId) {
|
||||
if (!layout || !memberId) {
|
||||
return null;
|
||||
@@ -610,6 +615,16 @@ function openSeatMapView(event) {
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('message', (event) => {
|
||||
const data = event.data;
|
||||
if (!data || typeof data !== 'object') {
|
||||
return;
|
||||
}
|
||||
if (data.type === 'seatmap-layout-updated') {
|
||||
handleSeatMapLayoutUpdated();
|
||||
}
|
||||
});
|
||||
|
||||
function triggerUpload(event) {
|
||||
if (event) {
|
||||
event.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user