From 328b9e4455389b77d74ef283aca263a078e10737 Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Thu, 11 Jun 2015 21:57:35 -0300 Subject: [PATCH] See #213. Add OK/Cancel buttons to Beautify Directory command --- src/beautify.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/beautify.coffee b/src/beautify.coffee index 2d430ca..26165f2 100644 --- a/src/beautify.coffee +++ b/src/beautify.coffee @@ -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").$