mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 20:26:36 +00:00
Merge pull request #38 from resin-io/jviotti/23/fix/windows-drive-overflow
win32: Show drive letter instead of device in dropdown
This commit is contained in:
commit
ee457805e6
@ -68,6 +68,8 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState
|
|||||||
console.debug('Drive selected: ' + drive);
|
console.debug('Drive selected: ' + drive);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.platform = window.process.platform;
|
||||||
|
|
||||||
this.burn = function(image, drive) {
|
this.burn = function(image, drive) {
|
||||||
|
|
||||||
// Stop scanning drives when burning
|
// Stop scanning drives when burning
|
||||||
|
@ -67,6 +67,8 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState
|
|||||||
console.debug('Drive selected: ' + drive);
|
console.debug('Drive selected: ' + drive);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.platform = window.process.platform;
|
||||||
|
|
||||||
this.burn = function(image, drive) {
|
this.burn = function(image, drive) {
|
||||||
|
|
||||||
// Stop scanning drives when burning
|
// Stop scanning drives when burning
|
||||||
|
@ -54,7 +54,13 @@
|
|||||||
|
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li ng-repeat="drive in app.scanner.drives">
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user