See #213. Add OK/Cancel buttons to Beautify Directory command

This commit is contained in:
Glavin Wiechert 2015-06-11 21:57:35 -03:00
parent 35303961e2
commit 328b9e4455
1 changed files with 5 additions and 1 deletions

View File

@ -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").$