feat(GUI): display drive name and description in tooltip (#1233)

In the main page we show the drive description, and on hover a tooltip
shows the drive name. The tooltip behaviour is changed to show both,
un-truncated.

Closes: https://github.com/resin-io/etcher/issues/1170
Changelog-Entry: Add the un-truncated drive description to the selected drive step tooltip.
This commit is contained in:
Benedict Aas 2017-03-29 14:12:45 +01:00 committed by Juan Cruz Viotti
parent 3c1882d2b4
commit e7f0613d82

View File

@ -61,7 +61,7 @@
ng-class="{
'text-disabled': main.shouldDriveStepBeDisabled()
}"
uib-tooltip="{{ main.selection.getDrive().name }}">
uib-tooltip="{{ main.selection.getDrive().description }} ({{ 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 }}