1
0
Fork 0

Fix video-abuse-details avatar display and user-list dropdown placement

This commit is contained in:
Rigel Kent 2020-05-05 12:02:57 +02:00
parent f66b8d1226
commit 97601690d6
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
<a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': 'reporter:&quot;' + videoAbuse.reporterAccount.displayName + '&quot;' }" class="chip">
<img
class="avatar"
[src]="videoAbuse.reporterAccount.avatar.path"
[src]="videoAbuse.reporterAccount.avatar?.path"
(error)="switchToDefaultAvatar($event)"
alt="Avatar"
>
@ -29,7 +29,7 @@
<a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': 'reportee:&quot;' +videoAbuse.video.channel.ownerAccount.displayName + '&quot;' }" class="chip">
<img
class="avatar"
[src]="videoAbuse.video.channel.ownerAccount?.avatar.path"
[src]="videoAbuse.video.channel.ownerAccount?.avatar?.path"
(error)="switchToDefaultAvatar($event)"
alt="Avatar"
>

View file

@ -20,7 +20,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
@Input() account: Account
@Input() buttonSize: 'normal' | 'small' = 'normal'
@Input() placement = 'left'
@Input() placement = 'left-top left-bottom auto'
@Input() label: string
@Output() userChanged = new EventEmitter()