diff --git a/frontend/src/app/shared/types/model/UserTableEntry.ts b/frontend/src/app/shared/types/model/UserTableEntry.ts index 4b5bfa6eb7..648eba9d7c 100644 --- a/frontend/src/app/shared/types/model/UserTableEntry.ts +++ b/frontend/src/app/shared/types/model/UserTableEntry.ts @@ -13,11 +13,11 @@ export interface UserTableEntry { export const convertFromUsers = (users: User[], teamId: number | null): UserTableEntry[] => { // make a deep copy to not modify original value const usersCopy = JSON.parse(JSON.stringify(users)) as User[]; + let userTableEntries; if (!teamId) { - return usersCopy.map((u) => convertFromUser(u)); - } - return ( - usersCopy + userTableEntries = usersCopy.map((u) => convertFromUser(u)); + } else { + userTableEntries = usersCopy // first we filter user teams based on selected team id .map((u) => { u.userTeamList = u.userTeamList.filter((ut) => ut.team.id === teamId); @@ -25,8 +25,9 @@ export const convertFromUsers = (users: User[], teamId: number | null): UserTabl }) // we remove users without membership in selected team id .filter((u) => u.userTeamList.length) - .map((u) => convertFromUser(u)) - ); + .map((u) => convertFromUser(u)); + } + return userTableEntries.sort((a, b) => a.firstname.localeCompare(b.firstname)); }; export const convertFromUser = (user: User): UserTableEntry => { diff --git a/frontend/src/app/team-management/member-list/member-list.component.html b/frontend/src/app/team-management/member-list/member-list.component.html index 6a87fcbaf9..ddb4423386 100644 --- a/frontend/src/app/team-management/member-list/member-list.component.html +++ b/frontend/src/app/team-management/member-list/member-list.component.html @@ -17,7 +17,11 @@

Alle Teams

- +
+

Keine Members

+
+ +
diff --git a/frontend/src/app/team-management/search-team-management/search-team-management.component.html b/frontend/src/app/team-management/search-team-management/search-team-management.component.html new file mode 100644 index 0000000000..a7c6fa6ad9 --- /dev/null +++ b/frontend/src/app/team-management/search-team-management/search-team-management.component.html @@ -0,0 +1,17 @@ + + + + + + diff --git a/frontend/src/app/team-management/search-team-management/search-team-management.component.scss b/frontend/src/app/team-management/search-team-management/search-team-management.component.scss new file mode 100644 index 0000000000..3a9cecac46 --- /dev/null +++ b/frontend/src/app/team-management/search-team-management/search-team-management.component.scss @@ -0,0 +1,3 @@ +#search-member-form-field { + width: 100%; +} diff --git a/frontend/src/app/team-management/search-team-management/search-team-management.component.ts b/frontend/src/app/team-management/search-team-management/search-team-management.component.ts new file mode 100644 index 0000000000..b9a071735d --- /dev/null +++ b/frontend/src/app/team-management/search-team-management/search-team-management.component.ts @@ -0,0 +1,10 @@ +import {Component} from '@angular/core'; + +@Component({ + selector: 'app-search-team-management', + templateUrl: './search-team-management.component.html', + styleUrl: './search-team-management.component.scss' +}) +export class SearchTeamManagementComponent { + +} diff --git a/frontend/src/app/team-management/team-management-banner/team-management-banner.component.html b/frontend/src/app/team-management/team-management-banner/team-management-banner.component.html index b16a492e51..64959f0092 100644 --- a/frontend/src/app/team-management/team-management-banner/team-management-banner.component.html +++ b/frontend/src/app/team-management/team-management-banner/team-management-banner.component.html @@ -5,27 +5,11 @@
-
+

Teamverwaltung

-
-
- - - - - +
+