aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r--client/src/app/shared/shared-main/date/date-toggle.component.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-main/date/date-toggle.component.ts b/client/src/app/shared/shared-main/date/date-toggle.component.ts
index 53f25f0ad..0c3949f11 100644
--- a/client/src/app/shared/shared-main/date/date-toggle.component.ts
+++ b/client/src/app/shared/shared-main/date/date-toggle.component.ts
@@ -1,5 +1,4 @@
1import { DatePipe } from '@angular/common' 1import { Component, Input, OnChanges } from '@angular/core'
2import { Component, Input, OnChanges, OnInit } from '@angular/core'
3import { FromNowPipe } from '../angular/from-now.pipe' 2import { FromNowPipe } from '../angular/from-now.pipe'
4 3
5@Component({ 4@Component({
@@ -14,10 +13,7 @@ export class DateToggleComponent implements OnChanges {
14 dateRelative: string 13 dateRelative: string
15 dateAbsolute: string 14 dateAbsolute: string
16 15
17 constructor ( 16 constructor (private fromNowPipe: FromNowPipe) { }
18 private datePipe: DatePipe,
19 private fromNowPipe: FromNowPipe
20 ) { }
21 17
22 ngOnChanges () { 18 ngOnChanges () {
23 this.updateDates() 19 this.updateDates()