Let plugins decorate banner topic, fixes local dates in banners (#6452)

This commit is contained in:
Penar Musaraj 2018-10-10 05:27:23 -04:00 committed by Guo Xiang Tan
parent 918633aa12
commit 0ea8c1943f
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import { iconNode } from "discourse-common/lib/icon-library";
import { addDecorator } from "discourse/widgets/post-cooked";
import ComposerEditor from "discourse/components/composer-editor";
import DiscourseBanner from "discourse/components/discourse-banner";
import { addButton } from "discourse/widgets/post-menu";
import { includeAttributes } from "discourse/lib/transform-post";
import { addToolbarCallback } from "discourse/components/d-editor";
@ -175,6 +176,7 @@ class PluginApi {
if (!opts.onlyStream) {
decorate(ComposerEditor, "previewRefreshed", callback);
decorate(DiscourseBanner, "didInsertElement", callback);
decorate(
this.container.factoryFor("component:user-stream").class,
"didInsertElement",