mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
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:
parent
abb6139f32
commit
58f30494b4
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user