-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change step grid #181
base: main
Are you sure you want to change the base?
Change step grid #181
Changes from all commits
e790bd0
34eadc5
57ba5a2
cada7de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,27 @@ | |
</b-checkbox> | ||
</b-navbar-item> | ||
</b-navbar-dropdown> | ||
|
||
<b-navbar-dropdown label="Grid" data-test="menu-top--grid"> | ||
<b-navbar-item | ||
data-test="menu-top--grid-one" | ||
@click="changeStepGrid(1)" | ||
> | ||
One Step | ||
</b-navbar-item> | ||
<b-navbar-item | ||
data-test="menu-top--grid-two" | ||
@click="changeStepGrid(2)" | ||
> | ||
Two Step | ||
</b-navbar-item> | ||
<b-navbar-item | ||
data-test="menu-top--grid-four" | ||
@click="changeStepGrid(4)" | ||
> | ||
Four Step | ||
</b-navbar-item> | ||
</b-navbar-dropdown> | ||
Comment on lines
+82
to
+101
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works okay, but I don't think this should be it's own top navbar item. We should reserve creating a new dropdown at the top level for new categories (For example, see the top menu of any program you use, "File", "Edit", "View", "Help", etc.) Let's consider other options... How about the bottom menu next to all the tool icons? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
</template> | ||
</b-navbar> | ||
|
||
|
@@ -183,6 +204,10 @@ export default Vue.extend({ | |
newShow(): void { | ||
this.$store.commit(Mutations.SET_NEW_SHOW, new InitialShowState()); | ||
}, | ||
|
||
changeStepGrid(size: number): void { | ||
this.$store.commit(Mutations.SET_GRID_SIZE, size); | ||
}, | ||
}, | ||
}); | ||
</script> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename this and
fourStepGridOffsetsY
to something more generic