работает нормально по логике, но в противовесия всем правилам ДЖСА?
<ul *dropdownMenu class="dropdown-menu">
<li *ngIf="sale.order_status == 'paid'">
<button class="text"
[attr.disabled]="sale.order_status != 'paid' ? true : null"
(click)="forwardStatus(sale.order_status, sale.id)">
Payment forwarded
</button>
</li>
<li *ngIf="sale.order_status == 'paid' || 'payment_forwarded'">
<button class="text"
[attr.disabled]="sale.order_status != 'payment_forwarded' ? true : null"
(click)="forwardStatus(sale.order_status, sale.id)">
Ready for transportation
</button>
</li>
<li *ngIf="sale.order_status == 'paid' || 'payment_forwarded' || 'ready'">
<button class="text"
[attr.disabled]="sale.order_status != 'ready' ? true : null"
(click)="forwardStatus(sale.order_status, sale.id)">
On the way
</button>
</li>
</ul>
http://plnkr.co/
Обсуждают сегодня