Fix support modal title
authorChocobozzz <me@florianbigard.com>
Mon, 30 Dec 2019 09:33:06 +0000 (10:33 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 30 Dec 2019 09:40:10 +0000 (10:40 +0100)
client/src/app/videos/+video-watch/modal/video-support.component.html
client/src/app/videos/+video-watch/modal/video-support.component.ts
client/src/app/videos/+video-watch/video-watch.component.html

index 90ca8897f52f8a3b5e3308c1d2de50e2328023ff..608a4632b9617569d1a3c8e767e69ebc96f46d6c 100644 (file)
@@ -1,6 +1,6 @@
 <ng-template #modal let-hide="close">
   <div class="modal-header">
-    <h4 i18n class="modal-title">Support {{ user?.account?.displayName }}</h4>
+    <h4 i18n class="modal-title">Support {{ video.account.displayName }}</h4>
     <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
   </div>
 
index 027b54efb0a230cbeebf8f2cd0829d69aa09ac4c..b56a51fbf7ce16685b4cfae11fc7fc1e9d5cf477 100644 (file)
@@ -2,7 +2,6 @@ import { Component, Input, ViewChild } from '@angular/core'
 import { VideoDetails } from '../../../shared/video/video-details.model'
 import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
 import { MarkdownService } from '@app/shared/renderer'
-import { User } from '@app/shared'
 
 @Component({
   selector: 'my-video-support',
@@ -11,7 +10,6 @@ import { User } from '@app/shared'
 })
 export class VideoSupportComponent {
   @Input() video: VideoDetails = null
-  @Input() user: User = null
 
   @ViewChild('modal', { static: true }) modal: NgbModal
 
index ea258711ef1297aaf0a397c0a314dbecd794f487..74ac64a63da2ae819ddbfb75741cedeb9e53a79d 100644 (file)
 </div>
 
 <ng-container *ngIf="video !== null">
-  <my-video-support #videoSupportModal [video]="video" [user]="user"></my-video-support>
+  <my-video-support #videoSupportModal [video]="video"></my-video-support>
   <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share>
 </ng-container>