Disable cart when is empty on SPA
This commit is contained in:
parent
bfd1bc6dcd
commit
463b2569be
@ -1,4 +1,5 @@
|
|||||||
<a class="esh-basketstatus"
|
<a class="esh-basketstatus"
|
||||||
|
[ngClass]="{'is-disabled': badge < 1}"
|
||||||
[routerLink]="['basket']">
|
[routerLink]="['basket']">
|
||||||
|
|
||||||
<div class="esh-basketstatus-image">
|
<div class="esh-basketstatus-image">
|
||||||
|
@ -6,6 +6,11 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
transition: all $animation-speed-default;
|
transition: all $animation-speed-default;
|
||||||
|
|
||||||
|
&.is-disabled {
|
||||||
|
opacity: .5;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
&-image {
|
&-image {
|
||||||
height: 36px;
|
height: 36px;
|
||||||
margin-top: .5rem;
|
margin-top: .5rem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user