added deleterepo functionality

This commit is contained in:
Florian Scholdei
2019-01-23 12:07:28 +01:00
parent 17cf42caf0
commit 27c71ec6a3
3 changed files with 20 additions and 2 deletions

View File

@@ -8,6 +8,9 @@ type Props = {
repository: Repository,
confirmDialog?: boolean,
// dispatcher functions
delete: Repository => void,
// context props
t: string => string
};
@@ -18,7 +21,7 @@ class DeleteRepo extends React.Component<Props> {
};
delete = () => {
//this.props.delete(this.props.repository);
this.props.delete(this.props.repository);
};
confirmDelete = () => {