diff --git a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 index 3264541b..2514ddce 100644 --- a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 @@ -12,6 +12,7 @@ const ACTION_TYPES = [ const PROFILE_FIELDS = [ 'name', + 'user_avatar', 'date_of_birth', 'title', 'locale', diff --git a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 index 56fe9529..1afb1683 100644 --- a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 @@ -20,7 +20,7 @@ export default Ember.Component.extend({ @computed() presetChoices() { - return [ + let presets = [ { id: 'categories', name: I18n.t('admin.wizard.field.choices_preset.categories') @@ -32,6 +32,13 @@ export default Ember.Component.extend({ name: I18n.t('admin.wizard.field.choices_preset.tags') } ]; + if (Discourse.SiteSettings.nationalflag_enabled) { + presets.push({ + id: 'flags', + name: I18n.t('admin.wizard.field.choices_preset.flags') + }) + } + return presets; }, @on('didInsertElement') diff --git a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs index 824030bd..9f69294c 100644 --- a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs @@ -143,6 +143,17 @@ {{/if}} {{#if sendMessage}} +