From 50c3cc7d755ae4e1a9bdec0a9c3a8b4c90fd14c4 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Wed, 10 Feb 2021 14:07:10 -0600 Subject: [PATCH] DEV: Trigger appEvent when topic progress component moves (#12030) --- .../javascripts/discourse/app/components/topic-progress.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/app/components/topic-progress.js b/app/assets/javascripts/discourse/app/components/topic-progress.js index 56f17df089d..f00764fced5 100644 --- a/app/assets/javascripts/discourse/app/components/topic-progress.js +++ b/app/assets/javascripts/discourse/app/components/topic-progress.js @@ -185,6 +185,10 @@ export default Component.extend({ "margin-bottom", !isDocked && composerHeight > draftComposerHeight ? "0px" : "" ); + this.appEvents.trigger("topic-progress:docked-status-changed", { + docked: isDocked, + element: this.element, + }); }, click(e) {