From 593edc43c56e412f6643327227e7eac49e159142 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Thu, 11 Mar 2021 16:45:35 +1000 Subject: [PATCH] FEATURE: Add tag-custom-settings plugin outlet (#12355) So plugin developers can add extra settings to the tag UI. --- .../discourse/app/templates/components/tag-info.hbs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs b/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs index ddbfc6b2952..5fc813c0f69 100644 --- a/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/tag-info.hbs @@ -2,7 +2,10 @@ {{#if tagInfo}}
{{discourse-tag tagInfo.name tagName="div" size="large"}} + {{#if canAdminTag}} + {{plugin-outlet name="tag-custom-settings" args=(hash tag=tagInfo) connectorTagName="" tagName="section"}} + {{d-button class="btn-default" action=(action "renameTag") icon="pencil-alt" label="tagging.rename_tag" id="rename-tag"}} {{d-button class="btn-default" action=(action "toggleEditControls") icon="cog" label="tagging.edit_synonyms" id="edit-synonyms"}} {{#if deleteAction}}