FIX: Disable insert link button when editing a category (#10549)

This commit is contained in:
Roman Rizzi 2020-08-31 13:50:40 -03:00 committed by GitHub
parent 58fe78bf28
commit 2a3a173e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,10 @@ import { buildCategoryPanel } from "discourse/components/edit-category-panel";
import { observes } from "discourse-common/utils/decorators";
export default buildCategoryPanel("topic-template", {
// Modals are defined using the singleton pattern.
// Opening the insert link modal will destroy the edit category modal.
showInsertLinkButton: false,
@observes("activeTab")
_activeTabChanged: function() {
if (this.activeTab) {

View File

@ -1,2 +1,2 @@
<label>{{i18n "category.topic_template"}}</label>
{{d-editor value=category.topic_template}}
{{d-editor value=category.topic_template showLink=showInsertLinkButton}}