maquina button

This commit is contained in:
amazuecos
2025-04-25 11:30:41 +02:00
parent b942064608
commit cc2c9eee1c

View File

@ -27,7 +27,6 @@ class MaquinistaTareaView {
this.showBasedOnStatus(statusClick);
console.info(`Estado ${statusClick}`)
this.handleUpdateTareaProgress(statusClick)
this.handleGetTareaProgress()
}
delayEventActionButton(event) {
let statusClick = $(event.currentTarget).data('estado');
@ -120,6 +119,7 @@ class MaquinistaTareaView {
handleGetTareaProgressSuccess(response) {
if (response.progress_dates) {
let lastStatus = response.progress_dates.findLast(e => e.estado != null).estado
console.log("Last status :", lastStatus)
this.showBasedOnStatus(lastStatus)
}
if (response.tiempo_trabajado) {