Skip to content

Commit

Permalink
changed to goto chat
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccutchanwd committed Feb 16, 2017
1 parent f176dbe commit 342c4a7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/controllers/chat.controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* John McCutchan ========================================= */
console.log('ChatCtrl-on');
angular.module('UserApp')
.controller('ChatCtrl', function(){
.controller('ChatCtrl', function($state, Auth, Users, profile){
var chatCtrl = this;

})
2 changes: 1 addition & 1 deletion app/controllers/login.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ angular.module('UserApp')
loginCtrl.login = function(){
Login.$signInWithEmailAndPassword(loginCtrl.user.email, loginCtrl.user.password)
.then(function(login){
$state.go('home');
$state.go('chat');
}, function(error){
loginCtrl.error = error;
});
Expand Down
11 changes: 10 additions & 1 deletion partials/profile.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<div>
<h2>Profile</h2>
<div>
<h2>Profile</h2>
</div>
<form ng-submit="customerCtrl.updateProfile()">
<p ng-hide="customerCtrl.profile.displayName">
You will need a display name to start chatting.
</p>
<input required type="text" class="form-control" placeholder="Display Name" ng-model="customerCtrl.profile.displayName">
<input type="submit" class="btn btn-default" value="Set Display Name">
</form>
</div>

0 comments on commit 342c4a7

Please sign in to comment.