This repository was archived by the owner on Jan 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 55
55
]
56
56
},
57
57
"staging" : {
58
- "optimization" : true ,
58
+ "optimization" : false ,
59
59
"outputHashing" : " all" ,
60
60
"sourceMap" : false ,
61
61
"namedChunks" : false ,
62
62
"aot" : true ,
63
63
"extractLicenses" : true ,
64
64
"vendorChunk" : false ,
65
- "buildOptimizer" : true ,
65
+ "buildOptimizer" : false ,
66
66
"fileReplacements" : [
67
67
{
68
68
"replace" : " src/environments/environment.ts" ,
Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ <h5 *ngIf="info && info.length > 0 && info !== 'team'" class='name center'>
62
62
< div class ="col-sm-6 promote typeahead ">
63
63
< mat-form-field appearance ="fill " style ="width: 100%; background-color: white; ">
64
64
< mat-label > Search for company</ mat-label >
65
- < mat-select name ="searchCompany " id ="searchCompany " name ="searchCompany ">
65
+ < mat-select name ="searchCompany " id ="searchCompany " name ="searchCompany " [(ngModel)] =" searchedCompany " >
66
66
< input (keyup) ="onKey($event.target.value) " style ="width: 100%; ">
67
- < mat-option *ngFor ="let comp of selectedCompanies " [value] ="comp.name ">
67
+ < mat-option *ngFor ="let comp of selectedCompanies " [value] ="comp ">
68
68
{{ comp.name }}
69
69
</ mat-option >
70
70
</ mat-select >
Original file line number Diff line number Diff line change @@ -180,11 +180,11 @@ export class PromoteComponent implements OnInit {
180
180
}
181
181
182
182
onKey ( value ) {
183
- this . selectedCompanies = this . search ( value ) ;
183
+ this . selectedCompanies = this . search ( value . name ) ;
184
184
}
185
185
186
- search ( value : string ) {
187
- let filter = value . toLowerCase ( ) ;
186
+ search ( value : Company ) {
187
+ let filter = value . name . toLowerCase ( ) ;
188
188
return this . companies . filter ( comp => comp . name . toLowerCase ( ) . includes ( filter ) ) ;
189
189
}
190
190
}
Original file line number Diff line number Diff line change 1
1
export const environment = {
2
2
production : true ,
3
- cannonUrl : 'https://cannon-staging.sinfo.org' ,
3
+ //cannonUrl: 'https://cannon-staging.sinfo.org',
4
+ cannonUrl : 'http://localhost:8090' ,
4
5
url_to_id : {
5
6
'28-sinfo' : '28-sinfo' ,
6
7
'27-sinfo' : '27-sinfo' ,
You can’t perform that action at this time.
0 commit comments