Skip to content

Commit

Permalink
feat(2594): adds email column & makes email selectable (#2613)
Browse files Browse the repository at this point in the history
* feat(2594): adds email column in users table

* fix(2594): makes name & email selectable
  • Loading branch information
tHe-AK authored Sep 25, 2024
1 parent 0922821 commit f3ba6cc
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<mat-icon svgIcon="arrow-back"></mat-icon>
</button>

<div>
<div class="user-data">
<h3 class="profile-name">{{ userData.name }}</h3>
<p>{{ userData.name }}</p>
<p>{{ userData.email }}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
display: flex;
align-items: flex-start;

.user-data {
z-index: 2;
}

.profile-name {
margin-top: $margin-8;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@
</td>
</ng-container>

<ng-container matColumnDef="email">
<th mat-header-cell *matHeaderCellDef mat-sort-header>
{{
'Admin.Modules.Users.Components.UsersTable.ColumnsName.Email'
| translate
}}
</th>
<td mat-cell *matCellDef="let user">
<div *ngIf="user.email" class="subItem">
{{ user.email }}
</div>
</td>
</ng-container>

<ng-container matColumnDef="firstDone">
<th mat-header-cell *matHeaderCellDef mat-sort-header>
{{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class UsersComponent implements OnInit, OnDestroy {
public dataSource: MatTableDataSource<UserMapped>;
public readonly displayedColumns: string[] = [
'name',
'email',
'firstDone',
'lastDone',
'lastVisit',
Expand Down
1 change: 1 addition & 0 deletions frontend-angular/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"UsersTable": {
"ColumnsName": {
"Favorite": "Favorite",
"Email": "Email",
"FirstVisit": "First visit",
"LastVisit": "Last visit",
"LastStudyActivity": "Last study activity",
Expand Down
1 change: 1 addition & 0 deletions frontend-angular/src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"UsersTable": {
"ColumnsName": {
"Favorite": "Любимый",
"Email": "Электронное письмо",
"FirstVisit": "Первый визит",
"LastVisit": "Последнее посещение",
"LastStudyActivity": "Последнее учебное занятие",
Expand Down

0 comments on commit f3ba6cc

Please sign in to comment.