diff options
Diffstat (limited to 'client/src')
3 files changed, 5 insertions, 3 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 2a05224a8..90ca8897f 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,12 +1,12 @@ | |||
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</h4> | 3 | <h4 i18n class="modal-title">Support {{ user?.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 | ||
7 | <div class="modal-body" [innerHTML]="videoHTMLSupport"></div> | 7 | <div class="modal-body" [innerHTML]="videoHTMLSupport"></div> |
8 | 8 | ||
9 | <div class="modal-footer inputs"> | 9 | <div class="modal-footer inputs"> |
10 | <span i18n class="action-button action-button-cancel" (click)="hide()">Cancel</span> | 10 | <span i18n class="action-button action-button-cancel" (click)="hide()">Maybe later</span> |
11 | </div> | 11 | </div> |
12 | </ng-template> | 12 | </ng-template> |
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 b56a51fbf..027b54efb 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,6 +2,7 @@ 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' | ||
5 | 6 | ||
6 | @Component({ | 7 | @Component({ |
7 | selector: 'my-video-support', | 8 | selector: 'my-video-support', |
@@ -10,6 +11,7 @@ import { MarkdownService } from '@app/shared/renderer' | |||
10 | }) | 11 | }) |
11 | export class VideoSupportComponent { | 12 | export class VideoSupportComponent { |
12 | @Input() video: VideoDetails = null | 13 | @Input() video: VideoDetails = null |
14 | @Input() user: User = null | ||
13 | 15 | ||
14 | @ViewChild('modal', { static: true }) modal: NgbModal | 16 | @ViewChild('modal', { static: true }) modal: NgbModal |
15 | 17 | ||
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 74ac64a63..ea258711e 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"></my-video-support> | 263 | <my-video-support #videoSupportModal [video]="video" [user]="user"></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> |