Disable cart when is empty on SPA

This commit is contained in:
Quique Fernandez 2016-12-29 18:41:57 +01:00
parent bfd1bc6dcd
commit 463b2569be
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<a class="esh-basketstatus"
[ngClass]="{'is-disabled': badge < 1}"
[routerLink]="['basket']">
<div class="esh-basketstatus-image">

View File

@ -6,6 +6,11 @@
position: relative;
transition: all $animation-speed-default;
&.is-disabled {
opacity: .5;
pointer-events: none;
}
&-image {
height: 36px;
margin-top: .5rem;