From a518955423730eedd022783e351a050722819b98 Mon Sep 17 00:00:00 2001 From: jumagura Date: Thu, 21 Sep 2023 22:31:15 -0400 Subject: [PATCH] DEV: Move tag element from publicTopicFields to basicTopicFields --- .../discourse/lib/wizard-schema.js.es6 | 1 + .../components/wizard-custom-action.hbs | 43 ++++++++++--------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/assets/javascripts/discourse/lib/wizard-schema.js.es6 b/assets/javascripts/discourse/lib/wizard-schema.js.es6 index 47257d82..bbefac69 100644 --- a/assets/javascripts/discourse/lib/wizard-schema.js.es6 +++ b/assets/javascripts/discourse/lib/wizard-schema.js.es6 @@ -107,6 +107,7 @@ const action = { post: null, post_builder: null, post_template: null, + tags: null, skip_redirect: null, custom_fields: null, required: null, diff --git a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs index 80152674..412b7f1b 100644 --- a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs @@ -84,6 +84,28 @@ +
+
+ +
+ +
+ {{wizard-mapper + inputs=this.action.tags + property="tags" + onUpdate=(action "mappedFieldUpdated") + options=(hash + tagSelection="output" + outputDefaultSelection="tag" + listSelection="output" + wizardFieldSelection=true + userFieldSelection="key,value" + context="action" + ) + }} +
+
+ {{#if this.action.post_builder}}
@@ -124,27 +146,6 @@
-
-
- -
- -
- {{wizard-mapper - inputs=this.action.tags - property="tags" - onUpdate=(action "mappedFieldUpdated") - options=(hash - tagSelection="output" - outputDefaultSelection="tag" - listSelection="output" - wizardFieldSelection=true - userFieldSelection="key,value" - context="action" - ) - }} -
-