From b8a591c1cab4ddce6a59e9c25c1d8cea45ba0339 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 19 Feb 2024 13:21:34 +0300 Subject: [PATCH] refactor: transfer the calculation of the current month to the parent component --- .../table-header/table-header.component.html | 2 +- .../table-header/table-header.component.ts | 26 ++++++++++++++----- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/components/table-header/table-header.component.html b/src/components/table-header/table-header.component.html index 435ec8b..c81c526 100644 --- a/src/components/table-header/table-header.component.html +++ b/src/components/table-header/table-header.component.html @@ -6,7 +6,7 @@ Неделя: {{ startWeek | date:"shortDate" }} - {{ addDays(startWeek, 6) | date: "shortDate" }}  - +