<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>
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',
})
export class VideoSupportComponent {
@Input() video: VideoDetails = null
- @Input() user: User = null
@ViewChild('modal', { static: true }) modal: NgbModal
</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>