Skip to content

Commit

Permalink
At least notify about project creation #105
Browse files Browse the repository at this point in the history
  • Loading branch information
N. Justus committed Sep 27, 2019
1 parent 7e6e787 commit 23f592b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/components/project-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class ProjectViewCon extends Component<any, any> {
private newProject(ev:any) {
ev.preventDefault()
this.api.newProject(this.props.username, this.newProjectName)
.then(this.props.addProject)
.then(project => {
this.props.addProject(project)
this.props.notifyInfo(`New private project '${project.name}' created.`)
})
.catch((er:ApiError) => this.props.notifyError(`Couldn't create new project: ${er.statusText}`))
}

Expand Down

0 comments on commit 23f592b

Please sign in to comment.