aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/groups
diff options
context:
space:
mode:
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>2022-01-27 11:06:59 +0100
committersonartech <sonartech@sonarsource.com>2022-01-27 20:03:05 +0000
commitdca8354af94e9feb46ea2312857e000aaa232372 (patch)
tree336b645749ab1fb1b1abdac19a69c70257e98b68 /server/sonar-web/src/main/js/apps/groups
parent85f744be340d8f404978341186dd77cc05584f31 (diff)
downloadsonarqube-dca8354af94e9feb46ea2312857e000aaa232372.tar.gz
sonarqube-dca8354af94e9feb46ea2312857e000aaa232372.zip
SONAR-15945 Get rid of T namespace in sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/apps/groups')
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/App.tsx13
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/DeleteForm.tsx3
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/EditMembers.tsx3
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx5
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/Form.tsx3
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/List.tsx7
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx7
7 files changed, 24 insertions, 17 deletions
diff --git a/server/sonar-web/src/main/js/apps/groups/components/App.tsx b/server/sonar-web/src/main/js/apps/groups/components/App.tsx
index efa8eeb4429..3a164bc7c5a 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/App.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/App.tsx
@@ -25,17 +25,18 @@ import ListFooter from '../../../components/controls/ListFooter';
import SearchBox from '../../../components/controls/SearchBox';
import { translate } from '../../../helpers/l10n';
import { omitNil } from '../../../helpers/request';
+import { Group, Paging } from '../../../types/types';
import DeleteForm from './DeleteForm';
import Form from './Form';
import Header from './Header';
import List from './List';
interface State {
- groups?: T.Group[];
- editedGroup?: T.Group;
- groupToBeDeleted?: T.Group;
+ groups?: Group[];
+ editedGroup?: Group;
+ groupToBeDeleted?: Group;
loading: boolean;
- paging?: T.Paging;
+ paging?: Paging;
query: string;
}
@@ -124,11 +125,11 @@ export default class App extends React.PureComponent<{}, State> {
this.setState({ editedGroup: undefined });
};
- openDeleteForm = (group: T.Group) => {
+ openDeleteForm = (group: Group) => {
this.setState({ groupToBeDeleted: group });
};
- openEditForm = (group: T.Group) => {
+ openEditForm = (group: Group) => {
this.setState({ editedGroup: group });
};
diff --git a/server/sonar-web/src/main/js/apps/groups/components/DeleteForm.tsx b/server/sonar-web/src/main/js/apps/groups/components/DeleteForm.tsx
index bae62700da5..52f865ec209 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/DeleteForm.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/DeleteForm.tsx
@@ -22,9 +22,10 @@ import { ResetButtonLink, SubmitButton } from '../../../components/controls/butt
import SimpleModal from '../../../components/controls/SimpleModal';
import DeferredSpinner from '../../../components/ui/DeferredSpinner';
import { translate, translateWithParameters } from '../../../helpers/l10n';
+import { Group } from '../../../types/types';
interface Props {
- group: T.Group;
+ group: Group;
onClose: () => void;
onSubmit: () => Promise<void>;
}
diff --git a/server/sonar-web/src/main/js/apps/groups/components/EditMembers.tsx b/server/sonar-web/src/main/js/apps/groups/components/EditMembers.tsx
index 59f29c29d74..76b0bb20941 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/EditMembers.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/EditMembers.tsx
@@ -21,10 +21,11 @@ import * as React from 'react';
import { ButtonIcon } from '../../../components/controls/buttons';
import BulletListIcon from '../../../components/icons/BulletListIcon';
import { translate } from '../../../helpers/l10n';
+import { Group } from '../../../types/types';
import EditMembersModal from './EditMembersModal';
interface Props {
- group: T.Group;
+ group: Group;
onEdit: () => void;
}
diff --git a/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx b/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx
index 619ffe94e34..e508954682c 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx
@@ -27,16 +27,17 @@ import SelectList, {
SelectListSearchParams
} from '../../../components/controls/SelectList';
import { translate } from '../../../helpers/l10n';
+import { Group, UserSelected } from '../../../types/types';
interface Props {
- group: T.Group;
+ group: Group;
onClose: () => void;
}
interface State {
lastSearchParams?: SelectListSearchParams;
needToReload: boolean;
- users: T.UserSelected[];
+ users: UserSelected[];
usersTotalCount?: number;
selectedUsers: string[];
}
diff --git a/server/sonar-web/src/main/js/apps/groups/components/Form.tsx b/server/sonar-web/src/main/js/apps/groups/components/Form.tsx
index 2efab620f3e..da5cc8c3f2a 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/Form.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/Form.tsx
@@ -24,10 +24,11 @@ import DeferredSpinner from '../../../components/ui/DeferredSpinner';
import MandatoryFieldMarker from '../../../components/ui/MandatoryFieldMarker';
import MandatoryFieldsExplanation from '../../../components/ui/MandatoryFieldsExplanation';
import { translate } from '../../../helpers/l10n';
+import { Group } from '../../../types/types';
interface Props {
confirmButtonText: string;
- group?: T.Group;
+ group?: Group;
header: string;
onClose: () => void;
onSubmit: (data: { description: string; name: string }) => Promise<void>;
diff --git a/server/sonar-web/src/main/js/apps/groups/components/List.tsx b/server/sonar-web/src/main/js/apps/groups/components/List.tsx
index 789811564c1..29670491a78 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/List.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/List.tsx
@@ -20,12 +20,13 @@
import { sortBy } from 'lodash';
import * as React from 'react';
import { translate } from '../../../helpers/l10n';
+import { Group } from '../../../types/types';
import ListItem from './ListItem';
interface Props {
- groups: T.Group[];
- onDelete: (group: T.Group) => void;
- onEdit: (group: T.Group) => void;
+ groups: Group[];
+ onDelete: (group: Group) => void;
+ onEdit: (group: Group) => void;
onEditMembers: () => void;
showAnyone: boolean;
}
diff --git a/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx b/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx
index 4e90fd62a63..ea3a33fe7b3 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx
+++ b/server/sonar-web/src/main/js/apps/groups/components/ListItem.tsx
@@ -23,12 +23,13 @@ import ActionsDropdown, {
ActionsDropdownItem
} from '../../../components/controls/ActionsDropdown';
import { translate } from '../../../helpers/l10n';
+import { Group } from '../../../types/types';
import EditMembers from './EditMembers';
export interface ListItemProps {
- group: T.Group;
- onDelete: (group: T.Group) => void;
- onEdit: (group: T.Group) => void;
+ group: Group;
+ onDelete: (group: Group) => void;
+ onEdit: (group: Group) => void;
onEditMembers: () => void;
}