Fix invitees--add creator
This commit is contained in:
@@ -13,6 +13,9 @@ lunchControllers.controller 'CreateRunCtrl', ['$scope', '$http', '$location', 's
|
||||
|
||||
$scope.create = (run) ->
|
||||
data = angular.copy run
|
||||
data.invitees.push
|
||||
name: data.creatorName
|
||||
email: data.creatorEmail
|
||||
socket.post '/run', data, (response) ->
|
||||
$location.path '/run/' + response.id
|
||||
$scope.$apply()
|
||||
|
||||
@@ -10,7 +10,7 @@ lunchControllers.controller 'RunCtrl', ['$scope', 'socket', '$routeParams', ($sc
|
||||
(response) ->
|
||||
$scope.show = true
|
||||
$scope.run = response
|
||||
$scope.numOrders = $scope.run.invitees.length + 1
|
||||
$scope.numOrders = $scope.run.invitees.length
|
||||
$scope.setProgress()
|
||||
$scope.$apply()
|
||||
|
||||
|
||||
@@ -30,18 +30,10 @@ header.page-header {
|
||||
margin-bottom: 10px;
|
||||
>div {
|
||||
padding: 20px;
|
||||
&.fill {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
.name {
|
||||
color: #ccc;
|
||||
}
|
||||
.fill>.btn {
|
||||
padding: 20px;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user