Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Minds Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
3
Snippets
Groups
Projects
Show more breadcrumbs
Minds
Minds Frontend
Merge requests
!424
[Sprint/InterestingIguana](bug): NSFW reason was not saving
#1486
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[Sprint/InterestingIguana](bug): NSFW reason was not saving
#1486
fix/nsfw-reason-save-1486
into
master
Overview
0
Commits
4
Pipelines
1
Changes
1
Merged
Ben
requested to merge
fix/nsfw-reason-save-1486
into
master
5 years ago
Overview
0
Commits
4
Pipelines
1
Changes
1
Expand
Closes
#1486 (closed)
(video below, apologies for long load times).
nsfw-fix
Edited
5 years ago
by
Ben
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
e8cb6b7d
4 commits,
5 years ago
1 file
+
4
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/app/modules/legacy/components/cards/activity/activity.ts
+
4
−
1
Options
@@ -367,7 +367,10 @@ export class Activity implements OnInit {
@@ -367,7 +367,10 @@ export class Activity implements OnInit {
}
}
onNSWFSelections
(
reasons
:
Array
<
{
value
,
label
,
selected
}
>
)
{
onNSWFSelections
(
reasons
:
Array
<
{
value
,
label
,
selected
}
>
)
{
this
.
attachment
.
setNSFW
(
reasons
);
if
(
this
.
attachment
.
has
())
{
this
.
attachment
.
setNSFW
(
reasons
);
}
this
.
activity
.
nsfw
=
reasons
.
map
(
reason
=>
reason
.
value
);
}
}
isUnlisted
()
{
isUnlisted
()
{
Loading