From: kimsible Date: Fri, 7 Aug 2020 16:12:44 +0000 (+0200) Subject: Add icons to dropdown actions (report, remove and remove & re-draft) X-Git-Tag: v2.4.0-rc.1~96 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=c311596094d6e2bad4f6215250dfc0c819d30b15;p=github%2FChocobozzz%2FPeerTube.git Add icons to dropdown actions (report, remove and remove & re-draft) --- 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 c2964d370..8473350be 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 @@ -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() }) }