]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add icons to dropdown actions (report, remove and remove & re-draft)
authorkimsible <kimsible@users.noreply.github.com>
Fri, 7 Aug 2020 16:12:44 +0000 (18:12 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 14 Aug 2020 13:03:38 +0000 (15:03 +0200)
client/src/app/+videos/+video-watch/comment/video-comment.component.ts

index c2964d3702c122a4700a5c6534c236ae39693edc..8473350be2e447c17de9e138cf292907b6b5385d 100644 (file)
@@ -154,21 +154,24 @@ export class VideoCommentComponent implements OnInit, OnChanges {
 
     if (this.isReportableByUser()) {
       this.prependModerationActions.push({
-        label: $localize`Report comment`,
+        label: $localize`Report`,
+        iconName: 'flag',
         handler: () => this.showReportModal()
       })
     }
 
     if (this.isRemovableByUser()) {
       this.prependModerationActions.push({
-        label: $localize`Remove comment`,
+        label: $localize`Remove`,
+        iconName: 'delete',
         handler: () => this.onWantToDelete()
       })
     }
 
     if (this.isRedraftableByUser()) {
       this.prependModerationActions.push({
-        label: $localize`Remove & re-draft comment`,
+        label: $localize`Remove & re-draft`,
+        iconName: 'edit',
         handler: () => this.onWantToRedraft()
       })
     }