Committed by
Gerrit Code Review
Adding clear button to pathpainter
Change-Id: I9fbd2f9e5483e5567156f814cd5e03fced711b78
Showing
2 changed files
with
9 additions
and
3 deletions
| ... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | ||
| 48 | function clear() { | 48 | function clear() { |
| 49 | wss.sendEvent(clearMessage); | 49 | wss.sendEvent(clearMessage); |
| 50 | - flash.flash('Source node: ' + node.id); | 50 | + flash.flash('Cleared source and destination'); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | function setSrc(node) { | 53 | function setSrc(node) { |
| ... | @@ -79,7 +79,6 @@ | ... | @@ -79,7 +79,6 @@ |
| 79 | wss.sendEvent(prevPathMessage); | 79 | wss.sendEvent(prevPathMessage); |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | - | ||
| 83 | function setMode(mode) { | 82 | function setMode(mode) { |
| 84 | if (currentMode === mode) { | 83 | if (currentMode === mode) { |
| 85 | $log.debug('(in mode', mode, 'already)'); | 84 | $log.debug('(in mode', mode, 'already)'); | ... | ... |
| ... | @@ -210,9 +210,16 @@ | ... | @@ -210,9 +210,16 @@ |
| 210 | tt: 'Highlight next path', | 210 | tt: 'Highlight next path', |
| 211 | gid: 'nextIntent' | 211 | gid: 'nextIntent' |
| 212 | }, | 212 | }, |
| 213 | + 0: { | ||
| 214 | + cb: function () { | ||
| 215 | + pps.clear(); | ||
| 216 | + }, | ||
| 217 | + tt: 'Clear source and destination', | ||
| 218 | + gid: 'xMark' | ||
| 219 | + }, | ||
| 213 | 220 | ||
| 214 | _keyOrder: [ | 221 | _keyOrder: [ |
| 215 | - 'openBracket', 'closeBracket', '3', '4', '5', '6', 'leftArrow', 'rightArrow' | 222 | + 'openBracket', 'closeBracket', '3', '4', '5', '6', 'leftArrow', 'rightArrow', '0' |
| 216 | ] | 223 | ] |
| 217 | }, | 224 | }, |
| 218 | 225 | ... | ... |
-
Please register or login to post a comment