diff --git a/web/ui/dashboard/src/app/models/group.model.ts b/web/ui/dashboard/src/app/models/group.model.ts index 513fe64ee8..a09f4140e3 100644 --- a/web/ui/dashboard/src/app/models/group.model.ts +++ b/web/ui/dashboard/src/app/models/group.model.ts @@ -29,6 +29,7 @@ export interface GROUP { created_at: Date; updated_at: Date; type: 'incoming' | 'outgoing'; + selected?: boolean; } export interface SOURCE { diff --git a/web/ui/dashboard/src/app/models/teams.model.ts b/web/ui/dashboard/src/app/models/teams.model.ts new file mode 100644 index 0000000000..5fd67d807c --- /dev/null +++ b/web/ui/dashboard/src/app/models/teams.model.ts @@ -0,0 +1,14 @@ +export interface TEAMS { + role: { + groups: string[]; + type: string; + }; + uid: string; + status?: boolean; + invitee_email?: string; + user_metadata: { + first_name: string; + last_name: string; + email: string; + }; +} diff --git a/web/ui/dashboard/src/app/private/components/table-loader/table-loader.component.html b/web/ui/dashboard/src/app/private/components/table-loader/table-loader.component.html index b4373ca817..168285a57a 100644 --- a/web/ui/dashboard/src/app/private/components/table-loader/table-loader.component.html +++ b/web/ui/dashboard/src/app/private/components/table-loader/table-loader.component.html @@ -1,102 +1,102 @@ -
{{ head }} | -|||
---|---|---|---|
-
-
-
- |
- - | - | - |
-
-
-
- |
-
-
-
-
- |
- ||
-
-
-
- |
-
-
-
-
- |
- ||
-
-
-
- |
-
-
-
-
- |
- ||
-
-
-
- |
-
-
-
-
- |
- ||
-
-
-
- |
- - | - | - |
-
-
-
- |
-
-
-
-
- |
- ||
-
-
-
- |
-
-
-
-
- |
-
{{ head }} | +|||
---|---|---|---|
+
+
+
+ |
+ + | + | + |
+
+
+
+ |
+
+
+
+
+ |
+ ||
+
+
+
+ |
+
+
+
+
+ |
+ ||
+
+
+
+ |
+
+
+
+
+ |
+ ||
+
+
+
+ |
+
+
+
+
+ |
+ ||
+
+
+
+ |
+ + | + | + |
+
+
+
+ |
+
+
+
+
+ |
+ ||
+
+
+
+ |
+
+
+
+
+ |
+
All your project's summary at a glance
View and manage your team members.
+{{ head }} | +|||
---|---|---|---|
+
+
+ {{ team?.user_metadata?.first_name?.slice(0, 1) }}{{ team?.user_metadata?.last_name?.slice(0, 1) }}
+ {{ team.user_metadata.first_name || '-' }} {{ team.user_metadata.last_name || '-' }}
+ |
+
+ {{ team.role.type === 'super_user' ? 'Super user' : team.role.type }}
+ |
+
+ All projects
+ |
+
+
+
+
+
+ |
+
{{ selectedFilterOption === 'pending' && head === 'Name' ? 'Email' : head }} | +|||
---|---|---|---|
+ {{ team.invitee_email }}
+ |
+
+ {{ team.role.type === 'super_user' ? 'Super user' : team.role.type }}
+ |
+
+ All projects
+ |
+ + |
You can invite team members to join your organization and assign them roles to projects
+ +Team member created succesfully! We sent them an email for onboarding instructions.
+ ++ Are you sure you want to deactivate + “{{ selectedMember?.user_metadata?.first_name }} {{ selectedMember?.user_metadata?.last_name }}” + ? +
+This action is irrevesible
+ + +My account
Organisation settings
diff --git a/web/ui/dashboard/src/app/private/private.component.ts b/web/ui/dashboard/src/app/private/private.component.ts index 1b6af57d9d..583cedbd24 100644 --- a/web/ui/dashboard/src/app/private/private.component.ts +++ b/web/ui/dashboard/src/app/private/private.component.ts @@ -41,8 +41,7 @@ export class PrivateComponent implements OnInit { const response = await this.privateService.getOrganizations(); this.organisations = response.data.content; const setOrg = localStorage.getItem('CONVOY_ORG'); - - if (!setOrg) { + if (!setOrg || setOrg === 'undefined') { this.selectOrganisation(this.organisations[0]); } else { this.userOrganization = JSON.parse(setOrg); diff --git a/web/ui/dashboard/src/assets/img/no-group.svg b/web/ui/dashboard/src/assets/img/no-group.svg new file mode 100644 index 0000000000..c12cae5cba --- /dev/null +++ b/web/ui/dashboard/src/assets/img/no-group.svg @@ -0,0 +1,97 @@ + diff --git a/web/ui/dashboard/src/assets/img/team-empty-img.svg b/web/ui/dashboard/src/assets/img/team-empty-img.svg new file mode 100644 index 0000000000..44ed030bc5 --- /dev/null +++ b/web/ui/dashboard/src/assets/img/team-empty-img.svg @@ -0,0 +1,40 @@ +