Merge pull request #72 from resin-io/fix/windows-backslash-drive-letter

Do not append a backslash after drive letter in Windows
This commit is contained in:
Juan Cruz Viotti 2016-01-11 01:23:03 -04:00
commit c589165e40

View File

@ -58,7 +58,7 @@
<!-- Show drive letter instead of phsycal drive name on Windows -->
<span ng-if="app.platform == 'win32'"
ng-bind="'Drive ' + drive.mountpoint + '\\ - ' + drive.size"></span>
ng-bind="'Drive ' + drive.mountpoint + ' - ' + drive.size"></span>
<span ng-if="app.platform != 'win32'"
ng-bind="drive.device + ' - ' + drive.size"></span>
@ -74,7 +74,7 @@
</div>
<div ng-show="app.selection.hasDrive()">
<span ng-if="app.platform == 'win32'" ng-bind="app.selection.getDrive().mountpoint + '\\'"></span>
<span ng-if="app.platform == 'win32'" ng-bind="app.selection.getDrive().mountpoint"></span>
<span ng-if="app.platform != 'win32'" ng-bind="app.selection.getDrive().device"></span>
</div>
</div>