hide error message icon when response does not contain error message

This commit is contained in:
MaysWind 2016-12-24 22:33:58 +08:00
parent c5e5fe49dc
commit faeada5cfa

View file

@ -48,7 +48,7 @@
</div>
<div class="setting-value col-sm-8">
<span ng-bind="task | taskStatus | translate: {errorcode: task.errorCode}"></span>
<i class="icon-primary fa fa-question-circle" ng-if="task.errorCode && task.errorCode != '0'"
<i class="icon-primary fa fa-question-circle" ng-if="task.errorCode && task.errorCode != '0' && task.errorMessage"
ng-tooltip="{{task.errorMessage}}" ng-tooltip-container="body" ng-tooltip-placement="top"></i>
</div>
</div>