Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c10cf8d

Browse files
UX: Hide topic button on manage account page (#35721)
1 parent b6857e0 commit c10cf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/horizon/javascripts/discourse/components/sidebar-new-topic-button.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class SidebarNewTopicButton extends Component {
2525
get shouldRender() {
2626
return (
2727
this.currentUser &&
28-
!this.router.currentRouteName.includes("admin") &&
28+
!this.router.currentURL.startsWith("/admin") &&
2929
this.application.sidebarEnabled
3030
);
3131
}

0 commit comments

Comments
 (0)