return
}
- const message = $localize`If you remove this user, you will not be able to create another with the same username!`
- const res = await this.confirmService.confirm(message, $localize`Delete`)
+ const message = $localize`If you remove user ${user.username}, you won't be able to create another with the same username!`
+ const res = await this.confirmService.confirm(message, $localize`Delete ${user.username}`)
if (res === false) return
this.userService.removeUser(user)
{
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)
},
{