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
f339b350
Commit
f339b350
authored
Aug 09, 2018
by
Patrick O'Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced confirm delete modal with deleteButton component in teams members list
parent
1c63f7a6
Show 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 @
f339b350
...
@@ -2,9 +2,9 @@ import React from 'react';
...
@@ -2,9 +2,9 @@ import React from 'react';
import
{
hot
}
from
'react-hot-loader'
;
import
{
hot
}
from
'react-hot-loader'
;
import
{
observer
}
from
'mobx-react'
;
import
{
observer
}
from
'mobx-react'
;
import
{
ITeam
,
ITeamMember
}
from
'app/stores/TeamsStore/TeamsStore'
;
import
{
ITeam
,
ITeamMember
}
from
'app/stores/TeamsStore/TeamsStore'
;
import
appEvents
from
'app/core/app_events'
;
import
SlideDown
from
'app/core/components/Animations/SlideDown'
;
import
SlideDown
from
'app/core/components/Animations/SlideDown'
;
import
{
UserPicker
,
User
}
from
'app/core/components/Picker/UserPicker'
;
import
{
UserPicker
,
User
}
from
'app/core/components/Picker/UserPicker'
;
import
DeleteButton
from
'app/core/components/DeleteButton/DeleteButton'
;
interface
Props
{
interface
Props
{
team
:
ITeam
;
team
:
ITeam
;
...
@@ -31,15 +31,7 @@ export class TeamMembers extends React.Component<Props, State> {
...
@@ -31,15 +31,7 @@ export class TeamMembers extends React.Component<Props, State> {
};
};
removeMember
(
member
:
ITeamMember
)
{
removeMember
(
member
:
ITeamMember
)
{
appEvents
.
emit
(
'confirm-modal'
,
{
this
.
props
.
team
.
removeMember
(
member
);
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
);
},
});
}
}
removeMemberConfirmed
(
member
:
ITeamMember
)
{
removeMemberConfirmed
(
member
:
ITeamMember
)
{
...
@@ -54,10 +46,8 @@ export class TeamMembers extends React.Component<Props, State> {
...
@@ -54,10 +46,8 @@ export class TeamMembers extends React.Component<Props, State> {
</
td
>
</
td
>
<
td
>
{
member
.
login
}
</
td
>
<
td
>
{
member
.
login
}
</
td
>
<
td
>
{
member
.
email
}
</
td
>
<
td
>
{
member
.
email
}
</
td
>
<
td
style=
{
{
width
:
'1%'
}
}
>
<
td
className=
"text-right"
>
<
a
onClick=
{
()
=>
this
.
removeMember
(
member
)
}
className=
"btn btn-danger btn-mini"
>
<
DeleteButton
onConfirmDelete=
{
()
=>
this
.
removeMember
(
member
)
}
/>
<
i
className=
"fa fa-remove"
/>
</
a
>
</
td
>
</
td
>
</
tr
>
</
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