feat(GUI): show drive name instead of device name (#1181)

We show the friendly drive name on the main page with the drive's device name
or mount point now inside a tooltip. Drive names longer than 11 characters are
truncated with a middle ellipsis.

Change-Type: minor
Changelog-Entry: Show friendly drive name instead of device name in the main screen.
Closes: https://github.com/resin-io/etcher/issues/1170
This commit is contained in:
Benedict Aas 2017-03-20 21:00:07 +00:00 committed by Juan Cruz Viotti
parent abb6139f32
commit 58f30494b4

View File

@ -60,8 +60,12 @@
<div class="step-selection-text"
ng-class="{
'text-disabled': main.shouldDriveStepBeDisabled()
}">
<span class="step-drive step-name">{{ main.selection.getDrive().name }}</span>
}"
uib-tooltip="{{ main.selection.getDrive().name }}">
<span class="step-drive step-name">
<!-- middleEllipses errors on undefined, therefore fallback to empty string -->
{{ (main.selection.getDrive().description || "") | middleEllipses:11 }}
</span>
<span class="step-drive step-size">{{ main.selection.getDrive().size | gigabyte | number:1 }} GB</span>
</div>
<button class="button button-link step-footer"