fix(GUI): remove success screen dots with a quantity of zero (#2227)

We remove success screen dots that are zero, which mainly means that the
error dot disappears as it shouldn't currently be possible to end up
with zero successful devices on that screen.

Change-Type: patch
This commit is contained in:
Benedict Aas 2018-04-23 18:33:31 +01:00 committed by GitHub
parent 00b11157b2
commit 82a57d34b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,8 @@
<div uib-tooltip="{{ finish.formattedErrors() }}" tooltip-placement="bottom" class="title-wrap"> <div uib-tooltip="{{ finish.formattedErrors() }}" tooltip-placement="bottom" class="title-wrap">
<h3 class="title">Flash Complete!</h3> <h3 class="title">Flash Complete!</h3>
<div class="target-status-line target-status-{{ type }}" <div class="target-status-line target-status-{{ type }}"
ng-repeat="(type, quantity) in finish.flash.getFlashResults().results.devices"> ng-repeat="(type, quantity) in finish.flash.getFlashResults().results.devices"
ng-if="quantity">
<span class="target-status-dot"></span> <span class="target-status-dot"></span>
<span class="target-status-quantity">{{ quantity }}</span> <span class="target-status-quantity">{{ quantity }}</span>
<span class="target-status-message">{{ finish.progressMessage[type](quantity) }}</span> <span class="target-status-message">{{ finish.progressMessage[type](quantity) }}</span>