Fix video-abuse-details avatar display and user-list dropdown placement
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 5 May 2020 10:02:57 +0000 (12:02 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Tue, 5 May 2020 10:02:57 +0000 (12:02 +0200)
client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.html
client/src/app/shared/moderation/user-moderation-dropdown.component.ts

index 588d383957896c43b5e66ad4803a97d60cdf7aec..2abcc06695f52d2c474cc214804c8685c722f122 100644 (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"
           >
index 9197556b037a70f165a3e7abfa6c29f013cb1f7d..c8ccaa800328c7ffaca1f31a93c4d8fe3659d85b 100644 (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()