mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
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
This commit is contained in:
parent
56248efbce
commit
32a00a0d9a
@ -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
|
||||
|
@ -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
|
||||
|
@ -54,7 +54,13 @@
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li ng-repeat="drive in app.scanner.drives">
|
||||
<a href="#" ng-click="app.selectDrive(drive.device)">{{ drive.device }} - {{ drive.size }}</a>
|
||||
<a href="#" ng-click="app.selectDrive(drive.device)">
|
||||
|
||||
<!-- Show drive letter instead of phsycal drive name on Windows -->
|
||||
<span ng-if="app.platform == 'win32'">Drive {{ drive.mountpoint }}\ - {{ drive.size }}</span>
|
||||
<span ng-if="app.platform != 'win32'">{{ drive.device }} - {{ drive.size }}</span>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user