aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-27 17:03:48 +0100
committerRigel Kent <sendmemail@rigelk.eu>2019-12-27 17:03:48 +0100
commit1053480b2561a35613551ea543d4d77bf8937b8c (patch)
treea79bf71bee2fa2d6e57c2769a7f566897380dca8 /client/src/app/videos
parentc1125bcadc1fa129856e56dc62f4c472cffa736a (diff)
downloadPeerTube-1053480b2561a35613551ea543d4d77bf8937b8c.tar.gz
PeerTube-1053480b2561a35613551ea543d4d77bf8937b8c.tar.zst
PeerTube-1053480b2561a35613551ea543d4d77bf8937b8c.zip
Slightly more personal support modal
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-watch/modal/video-support.component.html4
-rw-r--r--client/src/app/videos/+video-watch/modal/video-support.component.ts2
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.html2
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'
2import { VideoDetails } from '../../../shared/video/video-details.model' 2import { VideoDetails } from '../../../shared/video/video-details.model'
3import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 3import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
4import { MarkdownService } from '@app/shared/renderer' 4import { MarkdownService } from '@app/shared/renderer'
5import { 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})
11export class VideoSupportComponent { 12export 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>