]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-23493 Don't reset issue filters when opening project settings
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Thu, 7 Nov 2024 10:46:38 +0000 (11:46 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 7 Nov 2024 20:02:47 +0000 (20:02 +0000)
server/sonar-web/src/main/js/app/components/nav/component/Menu.tsx

index ae797f49ca1e6b7532330d57df09996db800d897..8b425e648b572c89f91f312058fccc5b719c508d 100644 (file)
@@ -266,13 +266,14 @@ export function Menu(props: Readonly<Props>) {
       >
         <NavBarTabLink
           active={isSettingsActive}
+          preventDefault // not really a link, we just use the same style to be consistent
           text={
             hasMessage('layout.settings', component.qualifier)
               ? translate('layout.settings', component.qualifier)
               : translate('layout.settings')
           }
+          to={{}} // not really a link, we just use the same style to be consistent
           withChevron
-          to={window.location}
         />
       </DropdownMenu.Root>
     );
@@ -549,7 +550,7 @@ export function Menu(props: Readonly<Props>) {
         id="component-navigation-more"
         items={withoutSecurityExtension.map((e) => renderExtension(e, false, query))}
       >
-        <NavBarTabLink preventDefault text={translate('more')} withChevron to={window.location} />
+        <NavBarTabLink preventDefault text={translate('more')} withChevron to={{}} />
       </DropdownMenu.Root>
     );
   };