Skip to content

Commit

Permalink
fix: macro's with spaces now show in the UI correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cadriel committed Oct 5, 2020
1 parent ba8ae43 commit d13bb0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/store/socket/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export const actions: ActionTree<SocketState, RootState> = {
let key = k
if (k.includes(' ')) key = key.replace(' ', '.')
if (k.includes('gcode_macro')) {
dispatch('addMacro', k.split(' ')[1])
const split: string[] = k.split(' ')
split.shift()
dispatch('addMacro', split.join(' '))
} else {
commit('onPrinterObjectsList', key)
}
Expand Down
4 changes: 2 additions & 2 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Next Up
- move to mdi svg icons, and reduce overall size
- add custompios image
- figure out a best approach for nginx
- setup discord?
-
- dynamic favicon that looks like the percent finished ring
- Config file list / editing

## Known Bugs:
- multi line gcodes not having a Send: prefix after the first line
Expand Down

0 comments on commit d13bb0c

Please sign in to comment.