v1.14.2-present: event schedules, venues and map blocks, Present mode and its phone remote #33
1 changed files with 5 additions and 4 deletions
|
|
@ -93,13 +93,14 @@ export default function ContentBlocks({
|
||||||
anchorPrefix?: string
|
anchorPrefix?: string
|
||||||
}) {
|
}) {
|
||||||
const presenting = usePresenting()
|
const presenting = usePresenting()
|
||||||
// Presented, a block shown only on the page is left out and the
|
// Presented, a block shown only on the page is left out, so is a
|
||||||
// rest take their Presentation text (095, 099); on the page, a block
|
// divider (a slide has its own edges), and the rest take their
|
||||||
// shown only in the presentation is.
|
// Presentation text (095, 099); on the page, a block shown only in
|
||||||
|
// the presentation is.
|
||||||
if (blocks) {
|
if (blocks) {
|
||||||
blocks = presenting
|
blocks = presenting
|
||||||
? blocks
|
? blocks
|
||||||
.filter((block) => !block.present?.hide)
|
.filter((block) => !block.present?.hide && block.type !== 'divider')
|
||||||
.map((block) => (block.present?.text ? { ...block, text: block.present.text } : block))
|
.map((block) => (block.present?.text ? { ...block, text: block.present.text } : block))
|
||||||
: blocks.filter((block) => !block.present?.only)
|
: blocks.filter((block) => !block.present?.only)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue