Commit add53021 authored by Randall Leeds's avatar Randall Leeds

Confirm draft discard before highlight mode

For #798
parent e131a3bb
......@@ -449,6 +449,10 @@ class Hypothesis extends Annotator
setTool: (name) =>
return if name is @tool
if tool is 'highlight'
return unless this.discardDrafts()
@tool = name
this.publish 'setTool', name
for p in @providers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment