From a05fe921367b248a5c057cdb19dc75706f34ae44 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 16 Aug 2024 22:20:29 +0200 Subject: [PATCH] Remove years --- .../src/lib/assistant/assistant.component.ts | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/libs/ui/src/lib/assistant/assistant.component.ts b/libs/ui/src/lib/assistant/assistant.component.ts index 58d41a564..fea32d255 100644 --- a/libs/ui/src/lib/assistant/assistant.component.ts +++ b/libs/ui/src/lib/assistant/assistant.component.ts @@ -231,19 +231,20 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { } ]; - if (this.user?.settings?.isExperimentalFeatures) { - this.dateRangeOptions = this.dateRangeOptions.concat( - eachYearOfInterval({ - end: new Date(), - start: this.user?.dateOfFirstActivity ?? new Date() - }) - .map((date) => { - return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; - }) - .slice(0, -1) - .reverse() - ); - } + // TODO + // if (this.user?.settings?.isExperimentalFeatures) { + // this.dateRangeOptions = this.dateRangeOptions.concat( + // eachYearOfInterval({ + // end: new Date(), + // start: this.user?.dateOfFirstActivity ?? new Date() + // }) + // .map((date) => { + // return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; + // }) + // .slice(0, -1) + // .reverse() + // ); + // } this.dateRangeOptions = this.dateRangeOptions.concat([ {