Skip to content

Commit

Permalink
main-view selects mayUndo/mayRedo.
Browse files Browse the repository at this point in the history
Part of #65.
  • Loading branch information
jkomoros committed Sep 20, 2023
1 parent 1638b03 commit a43742e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/components/main-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import {
selectEnvironmentData,
selectGarden,
selectHashForCurrentState,
selectMayRedo,
selectMayUndo,
selectPacketsBundle,
selectPageExtra,
selectPrompter,
Expand Down Expand Up @@ -210,6 +212,12 @@ class MainView extends connect(store)(PageViewElement) {

@state()
_currentPacket? : WrappedPacket;

@state()
_mayUndo = false;

@state()
_mayRedo = false;

static override get styles() {
return [
Expand Down Expand Up @@ -300,6 +308,8 @@ class MainView extends connect(store)(PageViewElement) {
this._currentPacketType = selectCurrentPacketType(state);
this._currentSeedID = selectCurrentSeedID(state);
this._currentPacket = selectCurrentPacket(state);
this._mayUndo = selectMayUndo(state);
this._mayRedo = selectMayRedo(state);
}

override firstUpdated() {
Expand Down

0 comments on commit a43742e

Please sign in to comment.