From d7467ea92de8092869bb53be0691f58647f4eda5 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 16 Jul 2020 17:30:25 +0200 Subject: [PATCH] =?UTF-8?q?history=20duplicata=20e=20fluidit=C3=A0=20del?= =?UTF-8?q?=20gantt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/src/app_modules_thermo/dashboard/dashboard.ts | 3 ++- .../src/app_modules_thermo/processo/components/gantt/gantt.vue | 2 +- .../app_modules_thermo/processo/components/gantt/timeline.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts index d1ccdbeb..3f806d21 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts @@ -36,7 +36,8 @@ export default class Dashboard extends Vue { @Watch("lastItem", { deep: true }) async lastitemChanged(n: Prod.IProd, o) { - this.items.splice(0, 0, ...await prodService.History(n.numDone - 1, 1)); + if (this.items.length && n.numDone - 1 != this.items[0].numDone) + this.items.splice(0, 0, ...await prodService.History(n.numDone - 1, 1)); } items: Prod.IProd[] = []; diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue index a036fd90..d1221d7f 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue @@ -50,7 +50,7 @@