Workflow uses parameter "viewModel.ready" to do the repetitive work.

In workflow module, every item in navigation used
'ng-show="viewModel.ready"' to determine whether it should
be display, it makes no sense to do so, and should replace
with the item parameter "step.ready" to control itself show
or hide.

Change-Id: Iadc5c90995022b2e0a13bcd46e4f2de64d1088b5
Closes-bug: #1797309
This commit is contained in:
shutingm 2018-10-09 17:45:22 +08:00
parent 07faca4701
commit 35a718a511
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
ng-class="{'active': currentIndex===$index}"
ng-click="switchTo($index)"
ng-repeat="step in steps"
ng-show="viewModel.ready">
ng-show="step.ready">
<a href="#">
<span ng-bind="::step.title"></span>
<span class="hz-icon-required fa fa-asterisk"