The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/rocketchat-ui-account/client/accountFlex.js

27 lines
577 B

/*globals menu */
Template.accountFlex.events({
'mouseenter header'() {
return SideNav.overArrow();
},
'mouseleave header'() {
return SideNav.leaveArrow();
},
'click header'() {
return SideNav.closeFlex();
},
'click .cancel-settings'() {
return SideNav.closeFlex();
},
'click .account-link'() {
return menu.close();
}
});
Template.accountFlex.helpers({
allowUserProfileChange() {
return RocketChat.settings.get('Accounts_AllowUserProfileChange');
},
allowUserAvatarChange() {
return RocketChat.settings.get('Accounts_AllowUserAvatarChange');
}
});