diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-09 11:58:46 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-10 14:02:41 +0200 |
commit | 8ca56654a176ee8f350d31282c6cac4a59f58499 (patch) | |
tree | 6e52ed0d8410abfceb62bcb6230b8ed50bd6c574 /client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts | |
parent | 310b5219b38427f0c2c7ba57225afdd8f3064380 (diff) | |
download | PeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.tar.gz PeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.tar.zst PeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.zip |
Add ability to report comments in front end
Diffstat (limited to 'client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts')
-rw-r--r-- | client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts b/client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts index 8f87630b8..fb0f65764 100644 --- a/client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts +++ b/client/src/app/+admin/moderation/abuse-list/abuse-details.component.ts | |||
@@ -31,15 +31,16 @@ export class AbuseDetailsComponent { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | get startAt () { | 33 | get startAt () { |
34 | return durationToString(this.abuse.startAt) | 34 | return durationToString(this.abuse.video.startAt) |
35 | } | 35 | } |
36 | 36 | ||
37 | get endAt () { | 37 | get endAt () { |
38 | return durationToString(this.abuse.endAt) | 38 | return durationToString(this.abuse.video.endAt) |
39 | } | 39 | } |
40 | 40 | ||
41 | getPredefinedReasons () { | 41 | getPredefinedReasons () { |
42 | if (!this.abuse.predefinedReasons) return [] | 42 | if (!this.abuse.predefinedReasons) return [] |
43 | |||
43 | return this.abuse.predefinedReasons.map(r => ({ | 44 | return this.abuse.predefinedReasons.map(r => ({ |
44 | id: r, | 45 | id: r, |
45 | label: this.predefinedReasonsTranslations[r] | 46 | label: this.predefinedReasonsTranslations[r] |