Commit 773e0cb3 authored by Ben Hayward's avatar Ben Hayward

Input the editing service

1 merge request!613[Sprint/QuietQuail](fix): Blog & media edit updated to new nsfw system #1936
Pipeline #100970889 running with stages
......@@ -51,7 +51,6 @@ export class NSFWSelectorComponent {
}
@Input('selected') set selected(selected: Array<number>) {
this.serviceRef = 'editing';
for (let i in this.service.reasons) {
this.service.reasons[i].selected =
selected.indexOf(this.service.reasons[i].value) > -1;
......
......@@ -156,6 +156,7 @@
</div>
<m-nsfw-selector
service="editing"
(selectedChange)="onNSFWSelections($event)"
[selected]="editing && blog.nsfw != [] ? blog.nsfw : []"
>
......
......@@ -72,6 +72,7 @@
</select>
</div>
<m-nsfw-selector
service="editing"
(selectedChange)="onNSFWSelections($event)"
[selected]="entity.nsfw"
>
......
Please register or to comment