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

pull/2737/head
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()