Fix support modal title

pull/2367/head
Chocobozzz 2019-12-30 10:33:06 +01:00
parent da69b88638
commit 1f3a605e10
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 2 additions and 4 deletions

View 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>

View 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

View File

@ -260,6 +260,6 @@
</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>