diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-27 11:22:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-27 11:22:21 +0200 |
commit | 87fdea2fbf486f056dd24bfd416841813bd41c58 (patch) | |
tree | 24cc7e153620d792d255d5c441e8bf1609cbe636 /client/src/app/+admin/overview/users | |
parent | e722fb5923ddf11d72e48cec9788abc64327c22f (diff) | |
download | PeerTube-87fdea2fbf486f056dd24bfd416841813bd41c58.tar.gz PeerTube-87fdea2fbf486f056dd24bfd416841813bd41c58.tar.zst PeerTube-87fdea2fbf486f056dd24bfd416841813bd41c58.zip |
Refactor actor avatar component
Diffstat (limited to 'client/src/app/+admin/overview/users')
-rw-r--r-- | client/src/app/+admin/overview/users/user-list/user-list.component.html | 4 | ||||
-rw-r--r-- | client/src/app/+admin/overview/users/user-list/user-list.component.ts | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.html index 4da46dc7b..aa3def63a 100644 --- a/client/src/app/+admin/overview/users/user-list/user-list.component.html +++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html | |||
@@ -93,8 +93,8 @@ | |||
93 | <td *ngIf="isSelected('username')" class="cell-username"> | 93 | <td *ngIf="isSelected('username')" class="cell-username"> |
94 | <a i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer" [routerLink]="[ '/a/' + user.username ]"> | 94 | <a i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer" [routerLink]="[ '/a/' + user.username ]"> |
95 | <div class="chip two-lines"> | 95 | <div class="chip two-lines"> |
96 | <my-actor-avatar [account]="user?.account" size="32"></my-actor-avatar> | 96 | <my-actor-avatar [actor]="user?.account" actorType="account" size="32"></my-actor-avatar> |
97 | <div> | 97 | <div> |
98 | <span class="user-table-primary-text">{{ user.account.displayName }}</span> | 98 | <span class="user-table-primary-text">{{ user.account.displayName }}</span> |
99 | <span class="muted">{{ user.username }}</span> | 99 | <span class="muted">{{ user.username }}</span> |
100 | </div> | 100 | </div> |
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.ts b/client/src/app/+admin/overview/users/user-list/user-list.component.ts index 91f42546b..3e1a5f6b8 100644 --- a/client/src/app/+admin/overview/users/user-list/user-list.component.ts +++ b/client/src/app/+admin/overview/users/user-list/user-list.component.ts | |||
@@ -190,7 +190,6 @@ export class UserListComponent extends RestTable implements OnInit { | |||
190 | } | 190 | } |
191 | 191 | ||
192 | getUserVideoQuotaDailyPercentage (user: UserForList) { | 192 | getUserVideoQuotaDailyPercentage (user: UserForList) { |
193 | console.log(user.rawVideoQuotaUsedDaily * 100 / user.rawVideoQuotaDaily) | ||
194 | return user.rawVideoQuotaUsedDaily * 100 / user.rawVideoQuotaDaily | 193 | return user.rawVideoQuotaUsedDaily * 100 / user.rawVideoQuotaDaily |
195 | } | 194 | } |
196 | 195 | ||