Browse Source

Remove years

pull/3393/head
Thomas Kaul 1 year ago
parent
commit
a05fe92136
  1. 27
      libs/ui/src/lib/assistant/assistant.component.ts

27
libs/ui/src/lib/assistant/assistant.component.ts

@ -231,19 +231,20 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit {
} }
]; ];
if (this.user?.settings?.isExperimentalFeatures) { // TODO
this.dateRangeOptions = this.dateRangeOptions.concat( // if (this.user?.settings?.isExperimentalFeatures) {
eachYearOfInterval({ // this.dateRangeOptions = this.dateRangeOptions.concat(
end: new Date(), // eachYearOfInterval({
start: this.user?.dateOfFirstActivity ?? new Date() // end: new Date(),
}) // start: this.user?.dateOfFirstActivity ?? new Date()
.map((date) => { // })
return { label: format(date, 'yyyy'), value: format(date, 'yyyy') }; // .map((date) => {
}) // return { label: format(date, 'yyyy'), value: format(date, 'yyyy') };
.slice(0, -1) // })
.reverse() // .slice(0, -1)
); // .reverse()
} // );
// }
this.dateRangeOptions = this.dateRangeOptions.concat([ this.dateRangeOptions = this.dateRangeOptions.concat([
{ {

Loading…
Cancel
Save