From 5d55c154c17dfc0d0fde116d637b5e15fe14e05a Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Fri, 29 Jul 2022 18:51:58 +0300 Subject: [PATCH 1/2] DEV: Replace `{{user-selector}}` with `{{email-group-user-chooser}}` --- .../discourse/components/wizard-mapper-selector.js.es6 | 2 +- .../templates/components/wizard-mapper-selector.hbs | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 b/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 index 8a2ae9ce..a257ed12 100644 --- a/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 +++ b/assets/javascripts/discourse/components/wizard-mapper-selector.js.es6 @@ -377,7 +377,7 @@ export default Component.extend({ this.changeValue(event.target.value); }, - changeUserValue(previousValue, value) { + changeUserValue(value) { this.changeValue(value); }, }, diff --git a/assets/javascripts/discourse/templates/components/wizard-mapper-selector.hbs b/assets/javascripts/discourse/templates/components/wizard-mapper-selector.hbs index 60f4c0cf..cb94b7ae 100644 --- a/assets/javascripts/discourse/templates/components/wizard-mapper-selector.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-mapper-selector.hbs @@ -66,11 +66,13 @@ {{/if}} {{#if showUser}} - {{user-selector - includeMessageableGroups="true" + {{email-group-user-chooser placeholderKey=placeholderKey - usernames=value + value=value autocomplete="discourse" - onChangeCallback=(action "changeUserValue")}} + onChange=(action "changeUserValue") + options=(hash + includeMessageableGroups="true" + )}} {{/if}} From e3efc68dc9f0b604da127ad3c28e742f6b84e2e7 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 29 Jul 2022 17:13:44 +0100 Subject: [PATCH 2/2] Bump version --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 571ff36d..960a0890 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Create custom wizards -# version: 1.22.0 +# version: 1.22.1 # authors: Angus McLeod # url: https://github.com/paviliondev/discourse-custom-wizard # contact emails: angus@pavilion.tech