feat(GUI): add a validateWriteOnSuccess property to the flash event (#1333)

This event property will allow us to inspect how many people are running
Etcher without the validation mechanism.

See: https://github.com/resin-io/etcher/issues/1293
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2017-04-21 08:54:44 -04:00 committed by GitHub
parent 0aefa56e1d
commit c0a91c0aba

View File

@ -63,7 +63,8 @@ module.exports = function(
AnalyticsService.logEvent('Flash', {
image,
drive,
unmountOnSuccess: settings.get('unmountOnSuccess')
unmountOnSuccess: settings.get('unmountOnSuccess'),
validateWriteOnSuccess: settings.get('validateWriteOnSuccess')
});
ImageWriterService.flash(image.path, drive).then(() => {