Commit 6a3c5829e7fe6d62a63d8e6b37caffd1d1aea32e

Authored by Eric Fernandez
Exists in develop

Merge branch 'master' into 'develop'

Master(mpuebla)

See merge request !20
src/views/botonera-productos.html
... ... @@ -4,9 +4,11 @@
4 4 ng-class="{'d-md-grid': boton == ''}">
5 5 <button
6 6 type="button"
7   - class="btn btn-block btn-producto rounded border border-light p-0"
8   - ng-click="(boton != '') ? ejecutarFuncion(boton.label) : null;"
  7 + class="btn btn-block rounded border border-light p-0"
  8 + ng-click="(boton != '') ? ejecutarFuncion(boton) : null;"
  9 + ng-class="{'btn-producto' : boton.image, 'btn-producto-default' : !boton.image}"
9 10 >
10   - <img ng-src="./img/{{boton.image}}" alt="">
  11 + <img ng-src="./img/{{boton.image || boton.imageDefault}}" alt="">
  12 + <label ng-if="!boton.image" ng-bind="boton.label"></label>
11 13 </button>
12 14 </div>