File tree 7 files changed +18
-24
lines changed
7 files changed +18
-24
lines changed Original file line number Diff line number Diff line change 163
163
"configurations" : {
164
164
"dev" : {
165
165
"browserTarget" : " valyou:build:dev"
166
+ },
167
+ "heroku-fr" : {
168
+ "browserTarget" : " valyou:build:heroku-fr"
166
169
}
167
170
}
168
171
},
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export class Budget {
12
12
endDate : Date ;
13
13
organization : Organization ;
14
14
sponsor : User ;
15
- donations : Donation [ ] ;
15
+ donations : Donation [ ] = [ ] ;
16
16
rules : Content ;
17
17
18
18
// Only in Valyou-Web
Original file line number Diff line number Diff line change 1
- import { User } from './user' ;
2
- import { Project } from './project' ;
3
- import { Budget } from './budget' ;
4
-
5
1
export class Donation {
6
2
id : number ;
7
3
amount : number ;
8
- contributor : User ;
9
- project : Project ;
10
- budget : Budget ;
4
+ contributor : any ;
5
+ project : any ;
6
+ budget : any ;
11
7
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export class Organization {
6
6
id : number ;
7
7
name : string = '' ;
8
8
slackTeamId : string = '' ;
9
- members : User [ ] ;
10
- budgets : Budget [ ] ;
11
- contents : Content [ ] ;
9
+ members : User [ ] = [ ] ;
10
+ budgets : Budget [ ] = [ ] ;
11
+ contents : Content [ ] = [ ] ;
12
12
}
Original file line number Diff line number Diff line change 1
1
import { User } from './user' ;
2
- import { Donation } from './donation' ;
3
- import { Organization } from './organization' ;
4
- import { Budget } from './budget' ;
5
-
6
2
7
3
export class Project {
8
4
id : number ;
@@ -15,11 +11,11 @@ export class Project {
15
11
peopleRequired : number = 2 ;
16
12
leader : User = new User ( ) ;
17
13
fundingDeadline : Date ;
18
- donations : Donation [ ] = [ ] ;
14
+ donations : any [ ] = [ ] ;
19
15
totalDonations : number = 0 ;
20
- peopleGivingTime : User [ ] = [ ] ;
21
- organizations : Organization [ ] = [ ] ;
22
- budgets : Budget [ ] = [ ] ;
16
+ peopleGivingTime : any [ ] = [ ] ;
17
+ organizations : any [ ] = [ ] ;
18
+ budgets : any [ ] = [ ] ;
23
19
24
20
// Only in Valyou-Web
25
21
remainingDays : number ;
Original file line number Diff line number Diff line change @@ -127,11 +127,11 @@ export class NewProjectComponent implements OnInit {
127
127
this . submitting = true ;
128
128
129
129
// Get data from form
130
- var selectedOrganization = new Organization ( ) ;
130
+ var selectedOrganization : any = { } ;
131
131
selectedOrganization . id = this . organizations [ this . f . organization . value ] . id ;
132
132
this . project . organizations = [ selectedOrganization ] ;
133
133
134
- var selectedBudget = new Budget ( ) ;
134
+ var selectedBudget : any = { } ;
135
135
selectedBudget . id = this . budgets [ this . f . budget . value ] . id ;
136
136
this . project . budgets = [ selectedBudget ] ;
137
137
Original file line number Diff line number Diff line change @@ -149,10 +149,9 @@ export class ViewProjectComponent implements OnInit {
149
149
150
150
var donation = new Donation ( ) ;
151
151
donation . amount = this . f . amount . value ;
152
- donation . project = new Project ( ) ;
152
+ donation . project = { } ;
153
153
donation . project . id = this . project . id ;
154
- donation . project . title = this . project . title ;
155
- donation . budget = new Budget ( )
154
+ donation . budget = { } ;
156
155
donation . budget . id = this . budgets [ this . f . budget . value ] . id ;
157
156
158
157
this . donationService . create ( donation )
You can’t perform that action at this time.
0 commit comments