Present: a list's slides picked on the setup screen, not the block
- Setup: Overview slide and A slide per item per list (`lists`), its items ticked on and off when either is picked - The block's two fields and 098's columns go (100) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ae06cd2b4f
commit
c4bb685bc0
6 changed files with 70 additions and 68 deletions
|
|
@ -76,8 +76,6 @@ function presentOf(row) {
|
|||
map_no_details: row.present_map_no_details === 1,
|
||||
places: row.present_places,
|
||||
place_keys: row.present_place_keys ? row.present_place_keys.split(",").filter(Boolean) : [],
|
||||
list_overview: row.present_list_overview === 1,
|
||||
list_items: row.present_list_items === 1,
|
||||
};
|
||||
return Object.values(present).some((value) => (Array.isArray(value) ? value.length : value)) ? present : null;
|
||||
}
|
||||
|
|
@ -91,8 +89,7 @@ export function loadBlocks(db, ownerKind, ids, slot = "body", depth = 0) {
|
|||
`SELECT id, owner_id, type, text, media, href, alt, cite, captions, team_id, venue_id,
|
||||
word_motion, word_direction, word_seconds, list_style, org_kind,
|
||||
present_show, present_text, present_map_split, present_map_no_list,
|
||||
present_map_no_details, present_places, present_place_keys,
|
||||
present_list_overview, present_list_items
|
||||
present_map_no_details, present_places, present_place_keys
|
||||
FROM content_blocks
|
||||
WHERE owner_kind = ? AND slot IN (?, 'both') AND owner_id IN (${placeholders(ids.length)})
|
||||
ORDER BY owner_id, sort_order`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue