aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/settings/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/settings/utils.ts')
-rw-r--r--server/sonar-web/src/main/js/apps/settings/utils.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/utils.ts b/server/sonar-web/src/main/js/apps/settings/utils.ts
index dcb442a7570..ba23c0f1d08 100644
--- a/server/sonar-web/src/main/js/apps/settings/utils.ts
+++ b/server/sonar-web/src/main/js/apps/settings/utils.ts
@@ -22,6 +22,7 @@ import { hasMessage, translate } from '../../helpers/l10n';
import { getGlobalSettingsUrl, getProjectSettingsUrl } from '../../helpers/urls';
import { AlmKeys } from '../../types/alm-settings';
import { Setting, SettingCategoryDefinition, SettingDefinition } from '../../types/settings';
+import { Component, Dict } from '../../types/types';
export const DEFAULT_CATEGORY = 'general';
@@ -108,7 +109,7 @@ export function getEmptyValue(item: SettingDefinition | SettingCategoryDefinitio
}
if (item.type === 'PROPERTY_SET') {
- const value: T.Dict<string> = {};
+ const value: Dict<string> = {};
item.fields.forEach(field => (value[field.key] = getEmptyValue(field)));
return [value];
}
@@ -170,7 +171,7 @@ export function isRealSettingKey(key: string) {
export function buildSettingLink(
definition: SettingCategoryDefinition,
- component?: T.Component
+ component?: Component
): LocationDescriptor {
const { category, key } = definition;
@@ -181,7 +182,7 @@ export function buildSettingLink(
};
}
- const query: T.Dict<string> = {};
+ const query: Dict<string> = {};
if (key.startsWith('sonar.auth.gitlab')) {
query.alm = 'gitlab';