conditionally show add friend in context menu
This commit is contained in:
parent
01ebde20f9
commit
e06b28742c
1 changed files with 2 additions and 0 deletions
|
@ -163,6 +163,8 @@ class User extends SnowFlake{
|
|||
);
|
||||
this.contextmenu.addbutton(()=>I18n.getTranslation("user.friendReq"), function(this: User){
|
||||
this.changeRelationship(1);
|
||||
},null,function(){
|
||||
return this.relationshipType===0;
|
||||
});
|
||||
this.contextmenu.addbutton(
|
||||
()=>I18n.getTranslation("user.kick"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue