diff --git a/angular.json b/angular.json index 3d3110a..9996f4b 100644 --- a/angular.json +++ b/angular.json @@ -29,13 +29,13 @@ ], "styles": [ "./node_modules/bootstrap/dist/css/bootstrap.min.css", - "node_modules/@fortawesome/fontawesome-free/css/all.min.css", + "./node_modules/@fortawesome/fontawesome-free/css/all.min.css", "src/styles.scss" ], "scripts": [ "./node_modules/jquery/dist/jquery.slim.min.js", "./node_modules/popper.js/dist/umd/popper.min.js", - "node_modules/@fortawesome/fontawesome-free/js/all.min.js", + "./node_modules/@fortawesome/fontawesome-free/js/all.min.js", "./node_modules/bootstrap/dist/js/bootstrap.min.js" ] }, diff --git a/src/app/modules/comanda/comanda.component.html b/src/app/modules/comanda/comanda.component.html index f8905dd..a9d7194 100644 --- a/src/app/modules/comanda/comanda.component.html +++ b/src/app/modules/comanda/comanda.component.html @@ -113,4 +113,4 @@ - \ No newline at end of file + diff --git a/src/app/modules/comanda/comanda.component.ts b/src/app/modules/comanda/comanda.component.ts index 094dc2c..24a30a1 100644 --- a/src/app/modules/comanda/comanda.component.ts +++ b/src/app/modules/comanda/comanda.component.ts @@ -99,20 +99,20 @@ export class ComandaComponent implements OnInit { return componentes.some(c => c.tipoArticulo === 6); } - //#region TIMERS - startTimersPedido(comandas) { - comandas.forEach((comanda: IComanda) => { - this.comandaService.startTimerComanda(comanda, 'Pedido'); - if (comanda.estado === 2) { - this.startTimerElaboracion(comanda); - } - }); - } - - startTimerElaboracion(comanda: IComanda) { - this.spinnerService.show(comanda.id.toString()); - this.comandaService.startTimerComanda(comanda, 'Elaboracion'); - } - //#endregion + //#region TIMERS + startTimersPedido(comandas) { + comandas.forEach((comanda: IComanda) => { + this.comandaService.startTimerComanda(comanda, 'Pedido'); + if (comanda.estado === 2) { + this.startTimerElaboracion(comanda); + } + }); + } + + startTimerElaboracion(comanda: IComanda) { + this.spinnerService.show(comanda.id.toString()); + this.comandaService.startTimerComanda(comanda, 'Elaboracion'); + } + //#endregion }