diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-30 10:33:06 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-30 10:40:10 +0100 |
commit | 1f3a605e10a6e5fc820f9287a382a11d6dca41b4 (patch) | |
tree | d5e021f7001db5407d6b7e057374eac04f591ae2 /client | |
parent | da69b88638914755900b26bf55482c9d6846e42c (diff) | |
download | PeerTube-1f3a605e10a6e5fc820f9287a382a11d6dca41b4.tar.gz PeerTube-1f3a605e10a6e5fc820f9287a382a11d6dca41b4.tar.zst PeerTube-1f3a605e10a6e5fc820f9287a382a11d6dca41b4.zip |
Fix support modal title
Diffstat (limited to 'client')
3 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/videos/+video-watch/modal/video-support.component.html b/client/src/app/videos/+video-watch/modal/video-support.component.html index 90ca8897f..608a4632b 100644 --- a/client/src/app/videos/+video-watch/modal/video-support.component.html +++ b/client/src/app/videos/+video-watch/modal/video-support.component.html | |||
@@ -1,6 +1,6 @@ | |||
1 | <ng-template #modal let-hide="close"> | 1 | <ng-template #modal let-hide="close"> |
2 | <div class="modal-header"> | 2 | <div class="modal-header"> |
3 | <h4 i18n class="modal-title">Support {{ user?.account?.displayName }}</h4> | 3 | <h4 i18n class="modal-title">Support {{ video.account.displayName }}</h4> |
4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | 4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> |
5 | </div> | 5 | </div> |
6 | 6 | ||
diff --git a/client/src/app/videos/+video-watch/modal/video-support.component.ts b/client/src/app/videos/+video-watch/modal/video-support.component.ts index 027b54efb..b56a51fbf 100644 --- a/client/src/app/videos/+video-watch/modal/video-support.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-support.component.ts | |||
@@ -2,7 +2,6 @@ import { Component, Input, ViewChild } from '@angular/core' | |||
2 | import { VideoDetails } from '../../../shared/video/video-details.model' | 2 | import { VideoDetails } from '../../../shared/video/video-details.model' |
3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
4 | import { MarkdownService } from '@app/shared/renderer' | 4 | import { MarkdownService } from '@app/shared/renderer' |
5 | import { User } from '@app/shared' | ||
6 | 5 | ||
7 | @Component({ | 6 | @Component({ |
8 | selector: 'my-video-support', | 7 | selector: 'my-video-support', |
@@ -11,7 +10,6 @@ import { User } from '@app/shared' | |||
11 | }) | 10 | }) |
12 | export class VideoSupportComponent { | 11 | export class VideoSupportComponent { |
13 | @Input() video: VideoDetails = null | 12 | @Input() video: VideoDetails = null |
14 | @Input() user: User = null | ||
15 | 13 | ||
16 | @ViewChild('modal', { static: true }) modal: NgbModal | 14 | @ViewChild('modal', { static: true }) modal: NgbModal |
17 | 15 | ||
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index ea258711e..74ac64a63 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html | |||
@@ -260,6 +260,6 @@ | |||
260 | </div> | 260 | </div> |
261 | 261 | ||
262 | <ng-container *ngIf="video !== null"> | 262 | <ng-container *ngIf="video !== null"> |
263 | <my-video-support #videoSupportModal [video]="video" [user]="user"></my-video-support> | 263 | <my-video-support #videoSupportModal [video]="video"></my-video-support> |
264 | <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share> | 264 | <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions" [playlist]="playlist"></my-video-share> |
265 | </ng-container> | 265 | </ng-container> |