| ... | ... | @@ -151,11 +151,13 @@ export const SidebarUtilityMenu = memo(function SidebarUtilityMenu() { |
| 151 | 151 | select: (location) => |
| 152 | 152 | /^\/settings(?:\/|$)/.test(location.pathname) |
| 153 | 153 | ? "settings" |
| 154 | | : location.pathname === "/usage" |
| 155 | | ? "usage" |
| 156 | | : location.pathname === "/pull-requests" |
| 157 | | ? "pull-requests" |
| 158 | | : null, |
| 154 | : /^\/projects\/[^/]+\/?$/.test(location.pathname) |
| 155 | ? "project-settings" |
| 156 | : location.pathname === "/usage" |
| 157 | ? "usage" |
| 158 | : location.pathname === "/pull-requests" |
| 159 | ? "pull-requests" |
| 160 | : null, |
| 159 | 161 | }); |
| 160 | 162 | const { environments } = useEnvironments(); |
| 161 | 163 | // The page reads every connected server, so one of them offering pull requests is enough for |