mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Add ability to report comments in front end
This commit is contained in:
parent
310b5219b3
commit
8ca56654a1
22 changed files with 488 additions and 163 deletions
|
@ -16,6 +16,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
|
|||
|
||||
@Input() user: User
|
||||
@Input() account: Account
|
||||
@Input() prependActions: DropdownAction<{ user: User, account: Account }>[]
|
||||
|
||||
@Input() buttonSize: 'normal' | 'small' = 'normal'
|
||||
@Input() placement = 'left-top left-bottom auto'
|
||||
|
@ -250,6 +251,12 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
|
|||
private buildActions () {
|
||||
this.userActions = []
|
||||
|
||||
if (this.prependActions) {
|
||||
this.userActions = [
|
||||
this.prependActions
|
||||
]
|
||||
}
|
||||
|
||||
if (this.authService.isLoggedIn()) {
|
||||
const authUser = this.authService.getUser()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue