mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-26 09:04:25 +01:00
Fix broken undo button
Reporter below Co-authored-by: Fabian Wunsch <fabian@uriah.heep.sax.de>
This commit is contained in:
parent
a13b9b2a3a
commit
14f1ec4afa
1 changed files with 2 additions and 1 deletions
|
@ -628,7 +628,8 @@ function updatePath(newPath = path) {
|
|||
path = newPath
|
||||
render(path)
|
||||
finishButton.disabled = path.length;
|
||||
undoButton.disabled = path.length == 1; // Maybe make it undo the cancel action in the future
|
||||
undoButton.disabled = path.length == 0; // Maybe make it undo the cancel action in the future
|
||||
undoHistory = []
|
||||
// TODO: Able to click finish when one period has it.
|
||||
finishButton.disabled = path.length < 3;
|
||||
}
|
Loading…
Reference in a new issue