mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 17:47:35 +08:00
FEATURE: adds an API to register topic footer buttons
This commit is contained in:
@ -144,18 +144,16 @@ export default Ember.Component.extend(
|
||||
didComputeAttributes() {},
|
||||
|
||||
willComputeContent(content) {
|
||||
return content;
|
||||
return applyContentPluginApiCallbacks(
|
||||
this.get("pluginApiIdentifiers"),
|
||||
content,
|
||||
this
|
||||
);
|
||||
},
|
||||
computeContent(content) {
|
||||
return content;
|
||||
},
|
||||
_beforeDidComputeContent(content) {
|
||||
content = applyContentPluginApiCallbacks(
|
||||
this.get("pluginApiIdentifiers"),
|
||||
content,
|
||||
this
|
||||
);
|
||||
|
||||
let existingCreatedComputedContent = [];
|
||||
if (!this.get("allowContentReplacement")) {
|
||||
existingCreatedComputedContent = this.get("computedContent").filterBy(
|
||||
|
Reference in New Issue
Block a user