Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove 'widget-button' from glimmer-topic-timeline (#20155)

Isaac Janzen66b015b472b1
diff --git a/app/assets/javascripts/discourse/app/components/topic-navigation.js b/app/assets/javascripts/discourse/app/components/topic-navigation.js
index 6bcea0da5fe..447933706a8 100644
--- a/app/assets/javascripts/discourse/app/components/topic-navigation.js
+++ b/app/assets/javascripts/discourse/app/components/topic-navigation.js
@@ -93,7 +93,9 @@ export default Component.extend(PanEvents, {
!$target.is("#discourse-modal") &&
!$parents.is(".modal-footer") &&
($target.is(".topic-timeline") ||
- !$parents.is("#topic-progress-wrapper"))
+ !$parents.is("#topic-progress-wrapper")) &&
+ !$parents.is(".timeline-open-jump-to-post-prompt-btn") &&
+ !$target.is(".timeline-open-jump-to-post-prompt-btn")
) {
this._collapseFullscreen();
}
diff --git a/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs b/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs
index baf9cc09920..59371e84be7 100644
--- a/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs
+++ b/app/assets/javascripts/discourse/app/components/topic-timeline/container.hbs
@@ -146,8 +146,7 @@
{{#if @fullscreen}}
<button
type="button"
- {{! we need to keep this a widget-button to not close the modal when opening form }}
- class="widget-button btn btn-text jump-to-post"
+ class="timeline-open-jump-to-post-prompt-btn btn btn-text jump-to-post"
title={{i18n "topic.progress.jump_prompt_long"}}
{{on "click" @jumpToPostPrompt}}
>