Skip to content

Commit

Permalink
[new #50] overview button
Browse files Browse the repository at this point in the history
  • Loading branch information
PluharVit committed Dec 12, 2022
1 parent f489f94 commit 6d36d51
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/PlanningTool.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,12 @@ class PlanningTool extends Component {
})
}

showOverview = () => {
const {defaultTimeStart, defaultTimeEnd} = this.state

this.timeline.current.updateScrollCanvas(defaultTimeStart.valueOf(), defaultTimeEnd.valueOf())
}

renderGroup = (group) => {
const siblings = this.getSiblings(group)
let ordering = false, orderDown = true, orderUp = true
Expand Down Expand Up @@ -1804,6 +1810,12 @@ class PlanningTool extends Component {
onClick={this.redo}>
Redo
</button>
<button
className="action-button"
onClick={this.showOverview}
>
Overview
</button>
</div>
</div>
</div>
Expand Down

0 comments on commit 6d36d51

Please sign in to comment.