diff --git a/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.hbs b/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.hbs index 51219441b82..f3a74b5787d 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.hbs @@ -3,13 +3,18 @@ {{/if}} {{#if this.open}} @@ -33,6 +38,7 @@ @action={{@moreButtonAction}} @icon={{@moreButtonIcon}} @text={{@moreButtonText}} + @name="customize" /> {{/if}} diff --git a/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.js b/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.js index 3ef41d9ce61..7836d57e704 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.js +++ b/app/assets/javascripts/discourse/app/components/sidebar/more-section-links.js @@ -47,10 +47,14 @@ export default class SidebarMoreSectionLinks extends Component { @bind closeDetails(event) { + if (event.target.closest(".sidebar-more-section-links-details-summary")) { + return; + } + if (this.open) { const isLinkClick = event.target.className.includes("sidebar-section-link") || - event.target.className.includes("sidebar-section-link-button"); + event.target.className.includes("--link-button"); if (isLinkClick || this.#isOutsideDetailsClick(event)) { this.open = false; @@ -69,7 +73,8 @@ export default class SidebarMoreSectionLinks extends Component { } @action - toggleSectionLinks() { + toggleSectionLinks(event) { + event.stopPropagation(); this.open = !this.open; } diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.hbs b/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.hbs index 852bcc1d381..97aa732b850 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/section-link-button.hbs @@ -1,7 +1,7 @@