Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
Fix the verbiage if no path is specified at all.
Browse files Browse the repository at this point in the history
  • Loading branch information
smashwilson committed Jul 16, 2015
1 parent 02436c3 commit 0d93a11
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/view/error-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,29 @@ class GitNotFoundErrorView extends View
@content: (err) ->
@div class: 'overlay from-top padded merge-conflict-error merge-conflicts-message', =>
@div class: 'panel', =>
@div class: "panel-heading", =>
@div class: 'panel-heading no-path', =>
@code 'git'
@text "can't be found in any of the default locations!"
@div class: 'panel-heading wrong-path', =>
@code 'git'
@text "can't be found at "
@code atom.config.get 'merge-conflicts.gitPath'
@text '!'
@div class: 'panel-body', =>
@div class: 'block',
'Please fix the path in your settings.'
'Please specify the correct path in the merge-conflicts package settings.'
@div class: 'block', =>
@button class: 'btn btn-error inline-block-tight', click: 'openSettings', 'Open Settings'
@button class: 'btn inline-block-tight', click: 'notRightNow', 'Not Right Now'

initialize: (err) ->
if atom.config.get 'merge-conflicts.gitPath'
@find('.no-path').hide()
@find('.wrong-path').show()
else
@find('.no-path').show()
@find('.wrong-path').hide()

openSettings: ->
atom.workspace.open 'atom://config/packages'
@remove()
Expand Down

0 comments on commit 0d93a11

Please sign in to comment.