aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>2024-11-07 11:46:38 +0100
committersonartech <sonartech@sonarsource.com>2024-11-07 20:02:47 +0000
commit540abf1c8339006b9235a2e335320e464854a6dc (patch)
tree8ae35d3ad1c45fb0190f1f9c8caf2a383e1d9d25
parent50dedf71927f0b721eed31e8791a9b0df1d36640 (diff)
downloadsonarqube-540abf1c8339006b9235a2e335320e464854a6dc.tar.gz
sonarqube-540abf1c8339006b9235a2e335320e464854a6dc.zip
SONAR-23493 Don't reset issue filters when opening project settings
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/Menu.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/Menu.tsx b/server/sonar-web/src/main/js/app/components/nav/component/Menu.tsx
index ae797f49ca1..8b425e648b5 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/Menu.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/component/Menu.tsx
@@ -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>
);
};