Fix video-abuse-details avatar display and user-list dropdown placement
This commit is contained in:
parent
f66b8d1226
commit
97601690d6
|
@ -9,7 +9,7 @@
|
||||||
<a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': 'reporter:"' + videoAbuse.reporterAccount.displayName + '"' }" class="chip">
|
<a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': 'reporter:"' + videoAbuse.reporterAccount.displayName + '"' }" class="chip">
|
||||||
<img
|
<img
|
||||||
class="avatar"
|
class="avatar"
|
||||||
[src]="videoAbuse.reporterAccount.avatar.path"
|
[src]="videoAbuse.reporterAccount.avatar?.path"
|
||||||
(error)="switchToDefaultAvatar($event)"
|
(error)="switchToDefaultAvatar($event)"
|
||||||
alt="Avatar"
|
alt="Avatar"
|
||||||
>
|
>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': 'reportee:"' +videoAbuse.video.channel.ownerAccount.displayName + '"' }" class="chip">
|
<a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': 'reportee:"' +videoAbuse.video.channel.ownerAccount.displayName + '"' }" class="chip">
|
||||||
<img
|
<img
|
||||||
class="avatar"
|
class="avatar"
|
||||||
[src]="videoAbuse.video.channel.ownerAccount?.avatar.path"
|
[src]="videoAbuse.video.channel.ownerAccount?.avatar?.path"
|
||||||
(error)="switchToDefaultAvatar($event)"
|
(error)="switchToDefaultAvatar($event)"
|
||||||
alt="Avatar"
|
alt="Avatar"
|
||||||
>
|
>
|
||||||
|
|
|
@ -20,7 +20,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
|
||||||
@Input() account: Account
|
@Input() account: Account
|
||||||
|
|
||||||
@Input() buttonSize: 'normal' | 'small' = 'normal'
|
@Input() buttonSize: 'normal' | 'small' = 'normal'
|
||||||
@Input() placement = 'left'
|
@Input() placement = 'left-top left-bottom auto'
|
||||||
@Input() label: string
|
@Input() label: string
|
||||||
|
|
||||||
@Output() userChanged = new EventEmitter()
|
@Output() userChanged = new EventEmitter()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user