Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
2dc1ad21
Verified
Commit
2dc1ad21
authored
Jul 08, 2022
by
Chocobozzz
Browse files
Abuse may not have predefined reasons
parent
1e6231ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/app/shared/shared-abuse-list/abuse-details.component.ts
View file @
2dc1ad21
...
...
@@ -29,6 +29,8 @@ export class AbuseDetailsComponent implements OnInit {
}
ngOnInit
():
void
{
if
(
!
this
.
abuse
.
predefinedReasons
)
return
this
.
predefinedReasons
=
this
.
abuse
.
predefinedReasons
.
map
(
r
=>
({
id
:
r
,
label
:
this
.
predefinedReasonsTranslations
[
r
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment