Browse Source

Disable cart when is empty on SPA

pull/49/merge
Quique Fernandez 8 years ago
parent
commit
463b2569be
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.html
  2. +5
    -0
      src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.scss

+ 1
- 0
src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.html View File

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


+ 5
- 0
src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.scss 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;


Loading…
Cancel
Save