From b3b9ef6e712adfa24ff0751f08394a41028fead9 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 22 Sep 2023 11:09:01 +0200 Subject: [PATCH] refactor: improve naming --- ...get-complete-state-for-work-context.util.ts | 6 +++--- .../features/worklog/worklog.component.html | 2 +- src/app/features/worklog/worklog.model.ts | 2 +- src/app/features/worklog/worklog.service.ts | 18 ++++++------------ 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/src/app/features/worklog/util/get-complete-state-for-work-context.util.ts b/src/app/features/worklog/util/get-complete-state-for-work-context.util.ts index b2b3c659925..046beebb15b 100644 --- a/src/app/features/worklog/util/get-complete-state-for-work-context.util.ts +++ b/src/app/features/worklog/util/get-complete-state-for-work-context.util.ts @@ -9,7 +9,7 @@ export const getCompleteStateForWorkContext = ( archive: EntityState, ): { completeStateForWorkContext: EntityState; - unarchivedIds: string[]; + nonArchiveTaskIds: string[]; } => { const wid = workContext.id; @@ -22,7 +22,7 @@ export const getCompleteStateForWorkContext = ( ...taskState.entities, }, }, - unarchivedIds: taskState.ids as string[], + nonArchiveTaskIds: taskState.ids as string[], }; } @@ -47,7 +47,7 @@ export const getCompleteStateForWorkContext = ( ...archivedEntities, }, }, - unarchivedIds, + nonArchiveTaskIds: unarchivedIds, }; }; diff --git a/src/app/features/worklog/worklog.component.html b/src/app/features/worklog/worklog.component.html index f5747db9961..6b65fbae735 100644 --- a/src/app/features/worklog/worklog.component.html +++ b/src/app/features/worklog/worklog.component.html @@ -157,7 +157,7 @@