Skip to content

Commit

Permalink
Reorder the Feed and Spindle override buttons (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Feb 10, 2017
1 parent f7a7eae commit f035a69
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions src/web/widgets/Grbl/Overrides.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('feedOverride', 10);
controller.command('feedOverride', -10);
}}
>
<i className="fa fa-arrow-up fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-10%
</RepeatButton>
<RepeatButton
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('feedOverride', -10);
controller.command('feedOverride', -1);
}}
>
<i className="fa fa-arrow-down fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-1%
</RepeatButton>
<RepeatButton
className="btn btn-default"
Expand All @@ -55,10 +55,10 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('feedOverride', -1);
controller.command('feedOverride', 10);
}}
>
<i className="fa fa-arrow-down fa-fw" />1%
<i className="fa fa-arrow-up fa-fw" />10%
</RepeatButton>
<button
type="button"
Expand All @@ -76,19 +76,19 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('spindleOverride', 10);
controller.command('spindleOverride', -10);
}}
>
<i className="fa fa-arrow-up fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-10%
</RepeatButton>
<RepeatButton
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('spindleOverride', -10);
controller.command('spindleOverride', -1);
}}
>
<i className="fa fa-arrow-down fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-1%
</RepeatButton>
<RepeatButton
className="btn btn-default"
Expand All @@ -103,10 +103,10 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('spindleOverride', -1);
controller.command('spindleOverride', 10);
}}
>
<i className="fa fa-arrow-down fa-fw" />1%
<i className="fa fa-arrow-up fa-fw" />10%
</RepeatButton>
<button
type="button"
Expand Down
24 changes: 12 additions & 12 deletions src/web/widgets/Smoothie/Overrides.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('feedOverride', 10);
controller.command('feedOverride', -10);
}}
>
<i className="fa fa-arrow-up fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-10%
</RepeatButton>
<RepeatButton
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('feedOverride', -10);
controller.command('feedOverride', -1);
}}
>
<i className="fa fa-arrow-down fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-1%
</RepeatButton>
<RepeatButton
className="btn btn-default"
Expand All @@ -55,10 +55,10 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('feedOverride', -1);
controller.command('feedOverride', 10);
}}
>
<i className="fa fa-arrow-down fa-fw" />1%
<i className="fa fa-arrow-up fa-fw" />10%
</RepeatButton>
<button
type="button"
Expand All @@ -76,19 +76,19 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('spindleOverride', 10);
controller.command('spindleOverride', -10);
}}
>
<i className="fa fa-arrow-up fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-10%
</RepeatButton>
<RepeatButton
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('spindleOverride', -10);
controller.command('spindleOverride', -1);
}}
>
<i className="fa fa-arrow-down fa-fw" />10%
<i className="fa fa-arrow-down fa-fw" />-1%
</RepeatButton>
<RepeatButton
className="btn btn-default"
Expand All @@ -103,10 +103,10 @@ class Overrides extends Component {
className="btn btn-default"
style={{ padding: 5 }}
onClick={() => {
controller.command('spindleOverride', -1);
controller.command('spindleOverride', 10);
}}
>
<i className="fa fa-arrow-down fa-fw" />1%
<i className="fa fa-arrow-up fa-fw" />10%
</RepeatButton>
<button
type="button"
Expand Down

0 comments on commit f035a69

Please sign in to comment.