Skip to content

Commit

Permalink
Merge pull request #7529 from TerriaJS/hide-active-story-button
Browse files Browse the repository at this point in the history
Hide story button when story is being played
  • Loading branch information
na9da authored Mar 5, 2025
2 parents fe61b9e + d08286f commit 7316b16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
- Remove unused pmtiles dependency.
- Update data styling docs
- Remove unused babel/eslint-parser dependency.
- Hide 'Story' button in mobile view if story panel is active.
- [The next improvement]

#### 8.8.1 - 2025-02-27
Expand Down
4 changes: 3 additions & 1 deletion lib/ReactViews/Map/BottomLeftBar/BottomLeftBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const shouldShowPlayStoryButton = (viewState: ViewState) =>
viewState.terria.configParameters.storyEnabled &&
defined(viewState.terria.stories) &&
viewState.terria.stories.length > 0 &&
viewState.useSmallScreenInterface;
viewState.useSmallScreenInterface &&
// Don't show story button if story panel is visible
viewState.storyShown !== true;

const BottomLeftBar: FC = observer(() => {
const { t } = useTranslation();
Expand Down

0 comments on commit 7316b16

Please sign in to comment.