From 5d84053685017c82136c08feaa9cb99ffc318e6e Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Mon, 20 Mar 2023 19:06:47 +0500 Subject: [PATCH] TSK-813: Remove WorkDayLength and change time reports to hours (#2763) Signed-off-by: Vyacheslav Tumanov --- .../components/schedule/MonthTableView.svelte | 2 +- plugins/tracker-assets/lang/en.json | 5 ++- plugins/tracker-assets/lang/ru.json | 5 ++- .../issues/timereport/EstimationEditor.svelte | 2 +- .../EstimationStatsPresenter.svelte | 21 +++++---- .../timereport/ReportedTimeEditor.svelte | 11 +++-- .../issues/timereport/TimePresenter.svelte | 6 +-- .../issues/timereport/TimeSpendReport.svelte | 5 +-- .../timereport/TimeSpendReportPopup.svelte | 34 +++++++++----- .../issues/timereport/TimeSpendReports.svelte | 7 ++- .../timereport/TimeSpendReportsList.svelte | 4 +- .../components/projects/CreateProject.svelte | 44 +++---------------- .../components/sprints/IssueStatistics.svelte | 9 ++-- .../components/sprints/SprintEditor.svelte | 7 ++- .../sprints/SprintRefPresenter.svelte | 5 +-- .../templates/EstimationEditor.svelte | 2 +- plugins/tracker-resources/src/plugin.ts | 3 +- plugins/tracker/src/index.ts | 4 +- tests/sanity/tests/tracker.spec.ts | 4 +- 19 files changed, 76 insertions(+), 104 deletions(-) diff --git a/plugins/hr-resources/src/components/schedule/MonthTableView.svelte b/plugins/hr-resources/src/components/schedule/MonthTableView.svelte index d5b4564c62..3add58b0a0 100644 --- a/plugins/hr-resources/src/components/schedule/MonthTableView.svelte +++ b/plugins/hr-resources/src/components/schedule/MonthTableView.svelte @@ -1,5 +1,5 @@ @@ -30,7 +28,7 @@ on:click use:tooltip={{ component: Label, - props: { label: tracker.string.TimeSpendHours, params: { value: floorFractionDigits(value * workDayLength, 2) } } + props: { label: tracker.string.TimeSpendHours, params: { value: floorFractionDigits(value * 8, 2) } } }} >