aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/urls.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/urls.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/urls.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/helpers/urls.ts b/server/sonar-web/src/main/js/helpers/urls.ts
index ee616508baa..85816bd3e70 100644
--- a/server/sonar-web/src/main/js/helpers/urls.ts
+++ b/server/sonar-web/src/main/js/helpers/urls.ts
@@ -24,13 +24,14 @@ import { ComponentQualifier, isApplication, isPortfolioLike } from '../types/com
import { MeasurePageView } from '../types/measures';
import { GraphType } from '../types/project-activity';
import { SecurityStandard } from '../types/security';
+import { Dict, HomePage } from '../types/types';
import { getBranchLikeQuery, isBranch, isMainBranch, isPullRequest } from './branch-like';
import { IS_SSR } from './browser';
import { getBaseUrl } from './system';
export interface Location {
pathname: string;
- query?: T.Dict<string | undefined | number>;
+ query?: Dict<string | undefined | number>;
}
type Query = Location['query'];
@@ -246,7 +247,7 @@ export function getQualityGatesUrl(): Location {
export function getGlobalSettingsUrl(
category?: string,
- query?: T.Dict<string | undefined | number>
+ query?: Dict<string | undefined | number>
): Location {
return {
pathname: '/admin/settings',
@@ -296,7 +297,7 @@ export function getCodeUrl(
};
}
-export function getHomePageUrl(homepage: T.HomePage) {
+export function getHomePageUrl(homepage: HomePage) {
switch (homepage.type) {
case 'APPLICATION':
return homepage.branch