mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 10:47:46 -05:00
UX: Hide topic button on manage account page (#35721)
This commit is contained in:
@@ -25,7 +25,7 @@ export default class SidebarNewTopicButton extends Component {
|
||||
get shouldRender() {
|
||||
return (
|
||||
this.currentUser &&
|
||||
!this.router.currentRouteName.includes("admin") &&
|
||||
!this.router.currentURL.startsWith("/admin") &&
|
||||
this.application.sidebarEnabled
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user