Skip to content

Commit

Permalink
Only set neo4j version when server responds with a valid response
Browse files Browse the repository at this point in the history
  • Loading branch information
pe4cey committed Nov 1, 2016
1 parent 65b0534 commit 53e7dff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/scripts/controllers/ChangePassword.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ angular.module('neo4jApp.controllers')
#New user who just changed the default password.
if not is_authenticated
$scope.$parent.defaultPasswordChanged()
Frame.create({input:"#{Settings.initCmd}"})

$scope.password_changed = true
$scope.$parent.frame.resetError()
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/Main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ angular.module('neo4jApp.controllers')
return Frame.create({input:"#{Settings.cmdchar}server connect"}) if !newUser

$scope.$watch 'version', (val) ->
return '' if not val
return '' if not val or Object.keys(val).length is 0
$scope.neo4j.version = val.version
$scope.neo4j.edition = val.edition
$scope.neo4j.enterpriseEdition = val.edition is 'enterprise'
Expand Down

0 comments on commit 53e7dff

Please sign in to comment.