FIX: Disable insert link button when editing a category (#10549)
This commit is contained in:
parent
58fe78bf28
commit
2a3a173e8e
@ -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) {
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
<label>{{i18n "category.topic_template"}}</label>
|
||||
{{d-editor value=category.topic_template}}
|
||||
{{d-editor value=category.topic_template showLink=showInsertLinkButton}}
|
||||
|
||||
Reference in New Issue
Block a user