Commit 43f50e53 authored by Juorder Antonio's avatar Juorder Antonio

add cos to be able to remove admins from domain view.

parent 335a0fad
...@@ -42,6 +42,10 @@ export default class DomainAdminList extends React.Component { ...@@ -42,6 +42,10 @@ export default class DomainAdminList extends React.Component {
} }
handleRemoveAdmin(e, admin) { handleRemoveAdmin(e, admin) {
const plans = Object.keys(window.manager_config.plans).filter((plan) => {
return window.manager_config.plans[plan].forRights;
});
e.preventDefault(); e.preventDefault();
const response = { const response = {
title: 'Se ha borrado con éxito', title: 'Se ha borrado con éxito',
...@@ -62,6 +66,7 @@ export default class DomainAdminList extends React.Component { ...@@ -62,6 +66,7 @@ export default class DomainAdminList extends React.Component {
if (isDeleted) { if (isDeleted) {
this.props.domain.removeAdmin( this.props.domain.removeAdmin(
admin.name, admin.name,
plans,
(error) => { (error) => {
if (error) { if (error) {
response.title = 'Ha ocurrido un 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