From 32a00a0d9ab7d220a863fe3ab0997bbf1263e53c Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 19 Nov 2015 14:13:49 -0400 Subject: [PATCH] win32: Show drive letter instead of device in dropdown Physical drive names are long and cause the dropdowns to overflow. Fixes: https://github.com/resin-io/herostratus/issues/23 --- build/browser/app.js | 2 ++ lib/browser/app.js | 2 ++ lib/index.html | 8 +++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build/browser/app.js b/build/browser/app.js index 9ae3a111..b9c0f7c4 100644 --- a/build/browser/app.js +++ b/build/browser/app.js @@ -68,6 +68,8 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState console.debug('Drive selected: ' + drive); }; + this.platform = window.process.platform; + this.burn = function(image, drive) { // Stop scanning drives when burning diff --git a/lib/browser/app.js b/lib/browser/app.js index 92588fd7..1d48af9b 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -67,6 +67,8 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState console.debug('Drive selected: ' + drive); }; + this.platform = window.process.platform; + this.burn = function(image, drive) { // Stop scanning drives when burning diff --git a/lib/index.html b/lib/index.html index 02e00390..ca5f4ce0 100644 --- a/lib/index.html +++ b/lib/index.html @@ -54,7 +54,13 @@