FEATURE: adds an API to register topic footer buttons

This commit is contained in:
Joffrey JAFFEUX
2019-02-07 14:43:33 +01:00
committed by GitHub
parent 92c52c0724
commit 6c195640b9
15 changed files with 592 additions and 180 deletions

View File

@ -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(