From: Mathieu Suen Date: Fri, 4 Sep 2020 12:25:54 +0000 (+0200) Subject: SONAR-13755 Add full path tootip on directory facet. X-Git-Tag: 8.5.0.37579~88 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79960d4a9de4b9dfce800c45b24816d30bd0d4d3;p=sonarqube.git SONAR-13755 Add full path tootip on directory facet. --- diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx index 01de14c13e4..d00d2b91ae5 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/DirectoryFacet.tsx @@ -53,7 +53,7 @@ export default class DirectoryFacet extends React.PureComponent { }; getSearchResultText = (directory: TreeComponentWithPath) => { - return directory.name; + return directory.path; }; handleSearch = (query: string, page: number) => { diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx index 503b792d70e..d08dbe20348 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/DirectoryFacet-test.tsx @@ -70,7 +70,7 @@ describe("ListStyleFacet's callback props", () => { const instance = wrapper.instance(); it('#getSearchResultText()', () => { - expect(instance.getSearchResultText({ name: 'bar' } as TreeComponentWithPath)).toBe('bar'); + expect(instance.getSearchResultText({ path: 'bar' } as TreeComponentWithPath)).toBe('bar'); }); it('#getSearchResultKey()', () => {