I have added a user_custom_field that holds a array of tags. I want to add a TagChooser to the preferences page.
So I put some stuff in a plugin out let and it displays the stuff that’s in the user preferences, so I have the serializer correctly wired up. Hooray.
I have this:
<label class="control-label">{{i18n 'user_tags.preferences.title'}}</label>
{{this.currentUser.user_tags}}
<TagChooser @tags={{this.currentUser.user_tags}} @onChange={{action "changeSelectedTags"}} @everyTag={{true}} @unlimitedTagCount={{true}} @options={{hash
allowAny=true
}} />
<div class="desc">{{html-safe this.setting.description}}</div>
<SettingValidationMessage @message={{this.validationMessage}} />
But the TagChooser
doesn’t generate any code. I suspect that I need to stick something cryptic in some randomly named file, and after I’m told, it’ll be totally obvious what I needed to put where, but I’ve waded through the Discourse source and a bunch of plugins and am still stuck.