mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
maquina button
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user