-
Notifications
You must be signed in to change notification settings - Fork 16
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
User list for moderative actions #12
Conversation
…loading and show basic list of names.
…basic button container for mod actions.
src/components/Sidebar/index.js
Outdated
@@ -20,6 +20,7 @@ const CustomSidebar = ({location, user, articles}) => { | |||
<Menu theme="dark" mode="inline" defaultSelectedKeys={[location.pathname]} style={{height: '100%', borderRight: 0, marginTop: '20px'}}> | |||
{user.username && user.isContributor && <Menu.Item key="/mycontributions"><Link to="/mycontributions">My Contributions</Link></Menu.Item>} | |||
{/*{user.isModerator && */}<Menu.Item key="/review"><Link to="/review">Review</Link></Menu.Item>{/*}*/} | |||
{/*{user.isSupervisor && */}<Menu.Item key="/users"><Link to="/users">Users</Link></Menu.Item>{/*}*/} |
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.
We can uncomment this for production @ateufel
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.
Yeah, i will add it with the production flag, give me a minute!
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.
How can we unban right now?
…r is a moderator.
There is no backend API for unban at the moment, according to the backend docs. But it would be easy to implement if it is added. |
Unban function added in the frontend. Backend needs to add the unban function: |
This PR is for a new component basically for moderators and supervisors. Supervisors can add/remove the moderator role to a user/contributor, moderators can ban users.
Changelog
Screenshots
Tags/Buttons:
![userlist_tags](https://user-images.githubusercontent.com/2619527/43039628-7ec17da8-8d31-11e8-907f-4a165d3220dc.png)
Ban Modal:
![userlist_ban_modal](https://user-images.githubusercontent.com/2619527/43039631-95d40e16-8d31-11e8-8140-416c236a2e61.png)
Ban Popover:
![userlist_ban_popover](https://user-images.githubusercontent.com/2619527/43039634-9d536290-8d31-11e8-8707-bba43cc51211.png)