Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
71630e4a
Unverified
Commit
71630e4a
authored
Aug 10, 2018
by
Daniel Lee
Committed by
GitHub
Aug 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12856 from grafana/12855-team-members-delete-button
Delete button for team members page
parents
1bb3cf1c
f339b350
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
public/app/containers/Teams/TeamMembers.tsx
+4
-14
No files found.
public/app/containers/Teams/TeamMembers.tsx
View file @
71630e4a
...
...
@@ -2,9 +2,9 @@ import React from 'react';
import
{
hot
}
from
'react-hot-loader'
;
import
{
observer
}
from
'mobx-react'
;
import
{
ITeam
,
ITeamMember
}
from
'app/stores/TeamsStore/TeamsStore'
;
import
appEvents
from
'app/core/app_events'
;
import
SlideDown
from
'app/core/components/Animations/SlideDown'
;
import
{
UserPicker
,
User
}
from
'app/core/components/Picker/UserPicker'
;
import
DeleteButton
from
'app/core/components/DeleteButton/DeleteButton'
;
interface
Props
{
team
:
ITeam
;
...
...
@@ -31,15 +31,7 @@ export class TeamMembers extends React.Component<Props, State> {
};
removeMember
(
member
:
ITeamMember
)
{
appEvents
.
emit
(
'confirm-modal'
,
{
title
:
'Remove Member'
,
text
:
'Are you sure you want to remove '
+
member
.
login
+
' from this group?'
,
yesText
:
'Remove'
,
icon
:
'fa-warning'
,
onConfirm
:
()
=>
{
this
.
removeMemberConfirmed
(
member
);
},
});
this
.
props
.
team
.
removeMember
(
member
);
}
removeMemberConfirmed
(
member
:
ITeamMember
)
{
...
...
@@ -54,10 +46,8 @@ export class TeamMembers extends React.Component<Props, State> {
</
td
>
<
td
>
{
member
.
login
}
</
td
>
<
td
>
{
member
.
email
}
</
td
>
<
td
style=
{
{
width
:
'1%'
}
}
>
<
a
onClick=
{
()
=>
this
.
removeMember
(
member
)
}
className=
"btn btn-danger btn-mini"
>
<
i
className=
"fa fa-remove"
/>
</
a
>
<
td
className=
"text-right"
>
<
DeleteButton
onConfirmDelete=
{
()
=>
this
.
removeMember
(
member
)
}
/>
</
td
>
</
tr
>
);
...
...
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