-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEW] Edit user permissions #7309
Conversation
Work in Progress
and fix some bugs
@@ -32,26 +35,50 @@ Template.userEdit.events({ | |||
'click .cancel'(e, t) { | |||
e.stopPropagation(); | |||
e.preventDefault(); | |||
return t.cancel(t.find('form')); | |||
Template.instance().roles.set([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use t
instead of Template.instance()
, right?
e.preventDefault(); | ||
let roles = Template.instance().roles.get(); | ||
roles = roles.filter(el => el !== this.valueOf()); | ||
Template.instance().roles.set(roles); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can add a second parameter (t
) on this event and use that here instead of Template.instance()
}, | ||
|
||
'click #randomPassword'(e) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
return $('#password').val(Random.id()); | ||
$('#password').val(Random.id()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
instead of template.instance()
@RocketChat/core
Closes #3656 , #3867 and #1629
This adds the ability to change the user permissions on the user edit tab, also added a better styling to it
TODO: