content tables

This commit is contained in:
2026-01-12 19:25:40 +02:00
parent b0485e77fc
commit 178b9309ec
16 changed files with 483 additions and 23 deletions
@@ -15,6 +15,12 @@
function handleLocaleChange() {
selectedLocales = getSelectedLocales();
}
function toggleLiveData() {
if (!showPublished) {
// to avoid state sync
Turbo.visit(window.location.href);
}
}
</script>
<!-- <svelte:window on:beforeunload={beforeUnload} /> -->
@@ -28,6 +34,7 @@
<label>
<input
bind:checked={showPublished}
onchange={toggleLiveData}
type="checkbox"
role="switch"
/>
@@ -20,7 +20,6 @@
(f) => f.fieldId === field.id && f.locale === locale,
);
};
$inspect(edgeRecordPreviews);
const findFieldEdges = (field, locale) => {
return edgeRecordPreviews.filter(
(e) => e.edge.fieldId === field.id && e.edge.locale === locale,
@@ -57,7 +57,7 @@
(data, err) => {
suggestionsLoaded = true;
dialog.close();
edgeRecordPreviews = [...edgeRecordPreviews, ...data];
edgeRecordPreviews = data;
},
);
}