mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Add mute status in account and channel pages
This commit is contained in:
parent
33675a4775
commit
80badf493a
28 changed files with 533 additions and 53 deletions
|
@ -289,13 +289,13 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
|
|||
{
|
||||
label: $localize`Mute the instance`,
|
||||
description: $localize`Hide any content from that instance for you.`,
|
||||
isDisplayed: ({ account }) => !account.userId && account.mutedServerByInstance === false,
|
||||
isDisplayed: ({ account }) => !account.userId && account.mutedServerByUser === false,
|
||||
handler: ({ account }) => this.blockServerByUser(account.host)
|
||||
},
|
||||
{
|
||||
label: $localize`Unmute the instance`,
|
||||
description: $localize`Show back content from that instance for you.`,
|
||||
isDisplayed: ({ account }) => !account.userId && account.mutedServerByInstance === true,
|
||||
isDisplayed: ({ account }) => !account.userId && account.mutedServerByUser === true,
|
||||
handler: ({ account }) => this.unblockServerByUser(account.host)
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue