Skip to content

Commit

Permalink
fix 'split' issue in project-dialog.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
codiceovvio authored Feb 10, 2018
1 parent 249031d commit 5232598
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dialogs/project-dialog.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ProjectDialog extends Dialog
if repo
option = document.createElement("option")
option.value = projectIndex
option.text = path.basename(path.resolve(repo.path, '..'))
option.text = path.basename(path.resolve(repo.repo.workingDirectory))
projectList.append(option)
projectIndex = projectIndex + 1

Expand All @@ -41,8 +41,8 @@ class ProjectDialog extends Dialog
changeProject: ->
@deactivate()
git.setProjectIndex(@projectList.val())
repo = git.getRepository()
repo = git.getRepository().repo

@parentView.setWorkspaceTitle(repo.path.split('/').reverse()[1])
@parentView.setWorkspaceTitle(repo.workingDirectory.split('/').reverse()[0])
@parentView.update()
return

0 comments on commit 5232598

Please sign in to comment.