Merge pull request #2159 from resin-io/hide-size-multiple-devices

fix(GUI): hide the size label given multiple devices
This commit is contained in:
Jonas Hermsmeier 2018-03-29 22:55:03 +02:00 committed by GitHub
commit 73155cca66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,11 @@
<!-- middleEllipsis errors on undefined, therefore fallback to empty string -->
{{ drive.getDrivesTitle() | middleEllipsis:20 }}
</span>
<span class="step-drive step-size">{{ main.selection.getCurrentDrive().size | closestUnit }}</span>
<span
ng-if="main.selection.getSelectedDevices().length === 1"
class="step-drive step-size">
{{ main.selection.getCurrentDrive().size | closestUnit }}
</span>
<span class="step-drive step-warning glyphicon glyphicon-exclamation-sign"
uib-tooltip="{{ main.constraints.getListDriveImageCompatibilityStatuses(main.selection.getSelectedDrives(), main.selection.getImage())[0].message }}"
ng-show="main.constraints.hasListDriveImageCompatibilityStatus(main.selection.getSelectedDrives(), main.selection.getImage())"></span>