Commit b13ce7be authored by Juorder Gonzalez's avatar Juorder Gonzalez

Merge pull request #170 from ZBoxApp/issues_resolved_manager

add cos to be able to remove admins from domain view.
parents 335a0fad 43f50e53
......@@ -42,6 +42,10 @@ export default class DomainAdminList extends React.Component {
}
handleRemoveAdmin(e, admin) {
const plans = Object.keys(window.manager_config.plans).filter((plan) => {
return window.manager_config.plans[plan].forRights;
});
e.preventDefault();
const response = {
title: 'Se ha borrado con éxito',
......@@ -62,6 +66,7 @@ export default class DomainAdminList extends React.Component {
if (isDeleted) {
this.props.domain.removeAdmin(
admin.name,
plans,
(error) => {
if (error) {
response.title = 'Ha ocurrido un error.';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment