Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
b13ce7be
Commit
b13ce7be
authored
Jun 07, 2016
by
Juorder Gonzalez
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #170 from ZBoxApp/issues_resolved_manager
add cos to be able to remove admins from domain view.
parents
335a0fad
43f50e53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
domain_admin_list.jsx
src/components/domain/domain_admin_list.jsx
+5
-0
No files found.
src/components/domain/domain_admin_list.jsx
View file @
b13ce7be
...
@@ -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.'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment