From 2e6c6ff4d69e93b9ef7e1f2bf5caa659660b29f4 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 17 Jul 2020 12:10:59 +1000 Subject: [PATCH] Expose custom field support for create group and create category --- .../discourse/components/wizard-custom-action.js.es6 | 2 +- assets/javascripts/discourse/lib/wizard-schema.js.es6 | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 index c661db3e..8fcca367 100644 --- a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 @@ -26,7 +26,7 @@ export default Component.extend(UndoChanges, { groupPropertyTypes: selectKitContent(['id', 'name']), hasAdvanced: or('hasCustomFields', 'routeTo'), showAdvanced: and('hasAdvanced', 'action.type'), - hasCustomFields: or('basicTopicFields', 'updateProfile'), + hasCustomFields: or('basicTopicFields', 'updateProfile', 'createGroup', 'createCategory'), basicTopicFields: or('createTopic', 'sendMessage', 'openComposer'), publicTopicFields: or('createTopic', 'openComposer'), showSkipRedirect: or('createTopic', 'sendMessage'), diff --git a/assets/javascripts/discourse/lib/wizard-schema.js.es6 b/assets/javascripts/discourse/lib/wizard-schema.js.es6 index 4a3d26ef..cd0b950c 100644 --- a/assets/javascripts/discourse/lib/wizard-schema.js.es6 +++ b/assets/javascripts/discourse/lib/wizard-schema.js.es6 @@ -164,7 +164,8 @@ const action = { color: null, text_color: "FFFFFF", parent_category_id: null, - permissions: null + permissions: null, + custom_fields: null }, create_group: { name: null, @@ -177,7 +178,8 @@ const action = { mentionable_level: null, messageable_level: null, visibility_level: null, - members_visibility_level: null + members_visibility_level: null, + custom_fields: null } }, mapped: [