diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-20 16:13:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-20 16:13:55 +0100 |
commit | 07fa4c97ca50b83b0bee9230da97d02401b4e05f (patch) | |
tree | 07a5ef1b14d8f0596c241456e4cc772f38c0e4ba /client/src/app/videos/+video-watch/video-watch.component.ts | |
parent | dddf58c8ce58f6cdd4b8ba93690cceae8f52c37d (diff) | |
download | PeerTube-07fa4c97ca50b83b0bee9230da97d02401b4e05f.tar.gz PeerTube-07fa4c97ca50b83b0bee9230da97d02401b4e05f.tar.zst PeerTube-07fa4c97ca50b83b0bee9230da97d02401b4e05f.zip |
Add support to video support on client
Diffstat (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index 553eed341..6b118b1de 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { Component, ElementRef, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core' | 1 | import { Component, ElementRef, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { VideoSupportComponent } from '@app/videos/+video-watch/modal/video-support.component' | ||
3 | import { MetaService } from '@ngx-meta/core' | 4 | import { MetaService } from '@ngx-meta/core' |
4 | import { NotificationsService } from 'angular2-notifications' | 5 | import { NotificationsService } from 'angular2-notifications' |
5 | import { Observable } from 'rxjs/Observable' | 6 | import { Observable } from 'rxjs/Observable' |
@@ -28,6 +29,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
28 | @ViewChild('videoDownloadModal') videoDownloadModal: VideoDownloadComponent | 29 | @ViewChild('videoDownloadModal') videoDownloadModal: VideoDownloadComponent |
29 | @ViewChild('videoShareModal') videoShareModal: VideoShareComponent | 30 | @ViewChild('videoShareModal') videoShareModal: VideoShareComponent |
30 | @ViewChild('videoReportModal') videoReportModal: VideoReportComponent | 31 | @ViewChild('videoReportModal') videoReportModal: VideoReportComponent |
32 | @ViewChild('videoSupportModal') videoSupportModal: VideoSupportComponent | ||
31 | 33 | ||
32 | otherVideosDisplayed: Video[] = [] | 34 | otherVideosDisplayed: Video[] = [] |
33 | 35 | ||
@@ -189,6 +191,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
189 | this.videoReportModal.show() | 191 | this.videoReportModal.show() |
190 | } | 192 | } |
191 | 193 | ||
194 | showSupportModal () { | ||
195 | this.videoSupportModal.show() | ||
196 | } | ||
197 | |||
192 | showShareModal () { | 198 | showShareModal () { |
193 | this.videoShareModal.show() | 199 | this.videoShareModal.show() |
194 | } | 200 | } |
@@ -264,7 +270,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
264 | return | 270 | return |
265 | } | 271 | } |
266 | 272 | ||
267 | this.videoHTMLDescription = this.markdownService.markdownToHTML(this.video.description) | 273 | this.videoHTMLDescription = this.markdownService.textMarkdownToHTML(this.video.description) |
268 | } | 274 | } |
269 | 275 | ||
270 | private setVideoLikesBarTooltipText () { | 276 | private setVideoLikesBarTooltipText () { |