diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer')
3 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewer.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewer.tsx index d37748db9a6..07ba7e6bfb0 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewer.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewer.tsx @@ -28,9 +28,10 @@ import { getSources, } from '../../api/components'; import { ComponentContext } from '../../app/components/componentContext/ComponentContext'; -import { getBranchLikeQuery, isSameBranchLike } from '../../helpers/branch-like'; +import { isSameBranchLike } from '../../helpers/branch-like'; import { translate } from '../../helpers/l10n'; import { HttpStatus } from '../../helpers/request'; +import { getBranchLikeQuery } from '../../sonar-aligned/helpers/branch-like'; import { BranchLike } from '../../types/branch-like'; import { ComponentQualifier } from '../../types/component'; import { diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx index 2967f417707..fbe658763a6 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx @@ -38,7 +38,6 @@ import { } from 'design-system'; import * as React from 'react'; import { useIntl } from 'react-intl'; -import { getBranchLikeQuery } from '../../helpers/branch-like'; import { SOFTWARE_QUALITIES } from '../../helpers/constants'; import { ISSUETYPE_METRIC_KEYS_MAP, @@ -59,6 +58,7 @@ import { getComponentIssuesUrl, getComponentSecurityHotspotsUrl, } from '../../helpers/urls'; +import { getBranchLikeQuery } from '../../sonar-aligned/helpers/branch-like'; import type { BranchLike } from '../../types/branch-like'; import { ComponentQualifier } from '../../types/component'; import { IssueType } from '../../types/issues'; diff --git a/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts b/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts index 79bb718804c..7627c87f14e 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts +++ b/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import { listIssues, searchIssues } from '../../../api/issues'; -import { getBranchLikeQuery } from '../../../helpers/branch-like'; import { parseIssueFromResponse } from '../../../helpers/issues'; +import { getBranchLikeQuery } from '../../../sonar-aligned/helpers/branch-like'; import { BranchLike } from '../../../types/branch-like'; import { Issue, RawQuery } from '../../../types/types'; import { DEFAULT_ISSUES_QUERY } from '../../shared/utils'; |