From 951b582f52d0694865f020f0e53ccfad2d2d6033 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Aug 2020 13:43:48 +0200 Subject: Add ability to share playlists in modal --- .../comment/video-comment.component.ts | 2 +- .../+video-watch/modal/video-share.component.html | 52 +++++++++++++++++++--- .../+video-watch/modal/video-share.component.ts | 41 +++++++++++++---- .../+videos/+video-watch/video-watch.component.ts | 2 +- 4 files changed, 79 insertions(+), 18 deletions(-) (limited to 'client/src/app/+videos/+video-watch') diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts index 6744a0954..36ec6e9f9 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts +++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts @@ -135,7 +135,7 @@ export class VideoCommentComponent implements OnInit, OnChanges { this.comment.account = null } - if (this.isUserLoggedIn() && this.authService.getUser().account.id !== this.comment.account.id) { + if (this.isUserLoggedIn() && this.comment.isDeleted === false && this.authService.getUser().account.id !== this.comment.account.id) { this.prependModerationActions = [ { label: this.i18n('Report comment'), diff --git a/client/src/app/+videos/+video-watch/modal/video-share.component.html b/client/src/app/+videos/+video-watch/modal/video-share.component.html index 71ae6544f..946e8d8ca 100644 --- a/client/src/app/+videos/+video-watch/modal/video-share.component.html +++ b/client/src/app/+videos/+video-watch/modal/video-share.component.html @@ -6,18 +6,56 @@