From 8eb2fa5fa9850aad2d5f71907949b8b47bec018b Mon Sep 17 00:00:00 2001 From: David Battersby Date: Wed, 8 Mar 2023 14:26:20 +0800 Subject: [PATCH] FEATURE: add new tags from edit tag synonyms page (#20553) Feature to allow adding new tags from the edit tag synonyms tag search field. Previously new tags had to be created from the topic composer, and then added via the edit tag synonyms page. /t/92741 --- .../discourse/app/components/tag-info.hbs | 1 + .../addon/components/tag-chooser.js | 6 ++- spec/system/page_objects/pages/tag.rb | 48 +++++++++++++++++ spec/system/tag_synonyms_spec.rb | 53 +++++++++++++++++++ 4 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 spec/system/page_objects/pages/tag.rb create mode 100644 spec/system/tag_synonyms_spec.rb diff --git a/app/assets/javascripts/discourse/app/components/tag-info.hbs b/app/assets/javascripts/discourse/app/components/tag-info.hbs index 99a3a3f2319..bda4cdadc52 100644 --- a/app/assets/javascripts/discourse/app/components/tag-info.hbs +++ b/app/assets/javascripts/discourse/app/components/tag-info.hbs @@ -120,6 +120,7 @@ @excludeSynonyms={{true}} @excludeHasSynonyms={{true}} @unlimitedTagCount={{true}} + @allowCreate={{true}} />