diff --git a/applications/client/src/views/Campaign/Explore/Explore.tsx b/applications/client/src/views/Campaign/Explore/Explore.tsx index 02bdc04a..86e644a7 100644 --- a/applications/client/src/views/Campaign/Explore/Explore.tsx +++ b/applications/client/src/views/Campaign/Explore/Explore.tsx @@ -96,6 +96,13 @@ export const Explore = observer(({ ...props }) => { } }); + useEffect(() => { + if (store.campaign.timeline.endTime) { + store.campaign.timeline.setScrubberTimeAny(store.campaign.timeline.endTime); + store.campaign.timeline.showAllTime(); + } + }, [store.router.params.presentation]); + useEffect( () => autorun(() => { diff --git a/applications/client/src/views/Campaign/Timeline/Bars.tsx b/applications/client/src/views/Campaign/Timeline/Bars.tsx index b9d12499..969e82d4 100644 --- a/applications/client/src/views/Campaign/Timeline/Bars.tsx +++ b/applications/client/src/views/Campaign/Timeline/Bars.tsx @@ -78,7 +78,9 @@ export const Bars = observer(({ xScale, bars, start, end, dimensions, ref={ref} {...(targetProps as any)} // :( onMouseDown={() => { - store.campaign?.timeline.setScrubberTimeAny(bar.end); + if (!store.router.params.presentation) { + store.campaign?.timeline.setScrubberTimeAny(bar.end); + } }} > {bar.beaconCount && ( diff --git a/applications/client/src/views/Campaign/Timeline/Timeline.tsx b/applications/client/src/views/Campaign/Timeline/Timeline.tsx index 53c0b805..e09957b1 100644 --- a/applications/client/src/views/Campaign/Timeline/Timeline.tsx +++ b/applications/client/src/views/Campaign/Timeline/Timeline.tsx @@ -172,7 +172,7 @@ export const Timeline = observer(({ ...props }) => { label="All Time" alignIndicator="right" css={timeSwitchStyles} - disabled={store.router.params.view === CampaignViews.PRESENTATION} + disabled={!!store.router.params.presentation} checked={store.campaign.timeline.isShowingAllTime} onChange={() => store.campaign.timeline.isShowingAllTime