Skip to content

Commit

Permalink
See #213. Add OK/Cancel buttons to Beautify Directory command
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Jun 12, 2015
1 parent 3530396 commit 328b9e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ beautifyDirectory = ({target}) ->
dirPath = target.dataset.path
return unless dirPath

return if atom?.confirm(message: "This will beautify all of the files found recursively in this directory, '#{dirPath}'. Do you want to continue?") isnt true
return if atom?.confirm(
message: "This will beautify all of the files found \
recursively in this directory, '#{dirPath}'. \
Do you want to continue?",
buttons: ['Yes, continue!','No, cancel!']) isnt 0

# Show in progress indicate on directory's tree-view entry
$ ?= require("atom-space-pen-views").$
Expand Down

0 comments on commit 328b9e4

Please sign in to comment.