diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-08 15:16:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-08 15:16:01 +0200 |
commit | dc48fdbe68e9dd3a3a6028181e61d8595d98e654 (patch) | |
tree | b641873412bfb4ff2a754a27762cd533c735e7d8 /client/src/app/shared/shared-main | |
parent | 27ec473f5306621643fcb169be7cfe6b15136265 (diff) | |
parent | b9244002fcc48dda7f3a588980d910a40429238f (diff) | |
download | PeerTube-dc48fdbe68e9dd3a3a6028181e61d8595d98e654.tar.gz PeerTube-dc48fdbe68e9dd3a3a6028181e61d8595d98e654.tar.zst PeerTube-dc48fdbe68e9dd3a3a6028181e61d8595d98e654.zip |
Merge branch 'release/3.1.0' into develop
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r-- | client/src/app/shared/shared-main/date/date-toggle.component.ts | 8 |
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 @@ | |||
1 | import { DatePipe } from '@angular/common' | 1 | import { Component, Input, OnChanges } from '@angular/core' |
2 | import { Component, Input, OnChanges, OnInit } from '@angular/core' | ||
3 | import { FromNowPipe } from '../angular/from-now.pipe' | 2 | import { 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() |