diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-08 14:41:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-08 14:41:15 +0200 |
commit | b06f1ead3b599a0315053572a6cf5811e533fc49 (patch) | |
tree | 60ee83ad75a0b332b53c99cf73087c9a2c9fa513 /client/src/app/shared | |
parent | 4c7449d2add412e2cef4d55b357d58abaa0ae83b (diff) | |
download | PeerTube-b06f1ead3b599a0315053572a6cf5811e533fc49.tar.gz PeerTube-b06f1ead3b599a0315053572a6cf5811e533fc49.tar.zst PeerTube-b06f1ead3b599a0315053572a6cf5811e533fc49.zip |
Fix updating transcoding profiles
Diffstat (limited to 'client/src/app/shared')
-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() |