diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-07-31 11:30:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 11:30:57 +0200 |
commit | 30814423ae98b6ac5f7407fc53cffe32aae57124 (patch) | |
tree | 8cc300366fdf2c6dc8e3dfc4c1e6c079dfd11571 /client/src/app/+admin/users | |
parent | 8d987ec63e6888c839ad55938d45809869c517c6 (diff) | |
download | PeerTube-30814423ae98b6ac5f7407fc53cffe32aae57124.tar.gz PeerTube-30814423ae98b6ac5f7407fc53cffe32aae57124.tar.zst PeerTube-30814423ae98b6ac5f7407fc53cffe32aae57124.zip |
Improve (accessibility title) and move action-buttons on left in tables (#2980)
* Improve and move action-buttons on left in tables
* Focus on my-delete and my-button
* Correct spaces syntax
* Move user-action dropdown on the left
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/app/+admin/users')
-rw-r--r-- | client/src/app/+admin/users/user-list/user-list.component.html | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/client/src/app/+admin/users/user-list/user-list.component.html b/client/src/app/+admin/users/user-list/user-list.component.html index e8a084259..012bb2d12 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.html +++ b/client/src/app/+admin/users/user-list/user-list.component.html | |||
@@ -61,7 +61,7 @@ | |||
61 | <th style="width: 60px;"> | 61 | <th style="width: 60px;"> |
62 | <div class="c-hand" ngbDropdown placement="bottom-right auto" container="body" autoClose="outside"> | 62 | <div class="c-hand" ngbDropdown placement="bottom-right auto" container="body" autoClose="outside"> |
63 | <my-global-icon iconName="columns" ngbDropdownToggle></my-global-icon> | 63 | <my-global-icon iconName="columns" ngbDropdownToggle></my-global-icon> |
64 | 64 | ||
65 | <div role="menu" class="dropdown-menu" ngbDropdownMenu> | 65 | <div role="menu" class="dropdown-menu" ngbDropdownMenu> |
66 | <div class="dropdown-header" i18n>Table parameters</div> | 66 | <div class="dropdown-header" i18n>Table parameters</div> |
67 | <div ngbDropdownItem class="dropdown-item"> | 67 | <div ngbDropdownItem class="dropdown-item"> |
@@ -95,6 +95,12 @@ | |||
95 | </span> | 95 | </span> |
96 | </td> | 96 | </td> |
97 | 97 | ||
98 | <td class="action-cell"> | ||
99 | <my-user-moderation-dropdown *ngIf="!isInSelectionMode()" [user]="user" container="body" | ||
100 | (userChanged)="onUserChanged()" (userDeleted)="onUserChanged()"> | ||
101 | </my-user-moderation-dropdown> | ||
102 | </td> | ||
103 | |||
98 | <td *ngIf="getColumn('username')"> | 104 | <td *ngIf="getColumn('username')"> |
99 | <a i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer" [routerLink]="[ '/accounts/' + user.username ]"> | 105 | <a i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer" [routerLink]="[ '/accounts/' + user.username ]"> |
100 | <div class="chip two-lines"> | 106 | <div class="chip two-lines"> |
@@ -161,14 +167,6 @@ | |||
161 | <td *ngIf="getColumn('createdAt')" [title]="user.createdAt">{{ user.createdAt | date: 'short' }}</td> | 167 | <td *ngIf="getColumn('createdAt')" [title]="user.createdAt">{{ user.createdAt | date: 'short' }}</td> |
162 | 168 | ||
163 | <td *ngIf="getColumn('lastLoginDate')" [title]="user.lastLoginDate">{{ user.lastLoginDate | date: 'short' }}</td> | 169 | <td *ngIf="getColumn('lastLoginDate')" [title]="user.lastLoginDate">{{ user.lastLoginDate | date: 'short' }}</td> |
164 | |||
165 | <td class="action-cell"> | ||
166 | <my-user-moderation-dropdown | ||
167 | *ngIf="!isInSelectionMode()" | ||
168 | [user]="user" container="body" (userChanged)="onUserChanged()" (userDeleted)="onUserChanged()" | ||
169 | > | ||
170 | </my-user-moderation-dropdown> | ||
171 | </td> | ||
172 | </tr> | 170 | </tr> |
173 | </ng-template> | 171 | </ng-template> |
174 | 172 | ||