From f8b06be7004925c0c1b76716a3289fae45c804b4 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Tue, 24 Dec 2019 00:44:32 +0100 Subject: [PATCH] improving task ui --- .../progress.tasks.settings.component.html | 3 +- .../progress.tasks.settings.component.ts | 32 ++++++++++++++++--- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/frontend/app/ui/settings/tasks/progress/progress.tasks.settings.component.html b/src/frontend/app/ui/settings/tasks/progress/progress.tasks.settings.component.html index 9fa616bf..0f81db95 100644 --- a/src/frontend/app/ui/settings/tasks/progress/progress.tasks.settings.component.html +++ b/src/frontend/app/ui/settings/tasks/progress/progress.tasks.settings.component.html @@ -22,8 +22,7 @@ aria-valuemax="100" style="min-width: 2em;" [style.width.%]="(progress.progress/(progress.left+progress.progress))*100"> - {{progress.progress}} - /{{progress.progress + progress.left}} + {{progress.progress}}/{{progress.progress + progress.left}}
{ + if (this.progress) { + this.timeCurrentCopy += 1000; + } + }); + } + } + + ngOnDestroy(): void { + if (this.timerSub) { + this.timerSub.unsubscribe(); + } + } + + }