mirror of https://github.com/Chocobozzz/PeerTube
Add icons to dropdown actions (report, remove and remove & re-draft)
parent
45ae994a44
commit
c311596094
|
@ -154,21 +154,24 @@ export class VideoCommentComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
if (this.isReportableByUser()) {
|
if (this.isReportableByUser()) {
|
||||||
this.prependModerationActions.push({
|
this.prependModerationActions.push({
|
||||||
label: $localize`Report comment`,
|
label: $localize`Report`,
|
||||||
|
iconName: 'flag',
|
||||||
handler: () => this.showReportModal()
|
handler: () => this.showReportModal()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isRemovableByUser()) {
|
if (this.isRemovableByUser()) {
|
||||||
this.prependModerationActions.push({
|
this.prependModerationActions.push({
|
||||||
label: $localize`Remove comment`,
|
label: $localize`Remove`,
|
||||||
|
iconName: 'delete',
|
||||||
handler: () => this.onWantToDelete()
|
handler: () => this.onWantToDelete()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isRedraftableByUser()) {
|
if (this.isRedraftableByUser()) {
|
||||||
this.prependModerationActions.push({
|
this.prependModerationActions.push({
|
||||||
label: $localize`Remove & re-draft comment`,
|
label: $localize`Remove & re-draft`,
|
||||||
|
iconName: 'edit',
|
||||||
handler: () => this.onWantToRedraft()
|
handler: () => this.onWantToRedraft()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue