Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 432eee5

Browse files
committed
fix
1 parent 5b22eea commit 432eee5

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

angular.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
]
5656
},
5757
"staging": {
58-
"optimization": true,
58+
"optimization": false,
5959
"outputHashing": "all",
6060
"sourceMap": false,
6161
"namedChunks": false,
6262
"aot": true,
6363
"extractLicenses": true,
6464
"vendorChunk": false,
65-
"buildOptimizer": true,
65+
"buildOptimizer": false,
6666
"fileReplacements": [
6767
{
6868
"replace": "src/environments/environment.ts",

src/app/user/promote/promote.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ <h5 *ngIf="info && info.length > 0 && info !== 'team'" class='name center'>
6262
<div class="col-sm-6 promote typeahead">
6363
<mat-form-field appearance="fill" style="width: 100%; background-color: white;">
6464
<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">
6666
<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">
6868
{{ comp.name }}
6969
</mat-option>
7070
</mat-select>

src/app/user/promote/promote.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ export class PromoteComponent implements OnInit {
180180
}
181181

182182
onKey(value) {
183-
this.selectedCompanies = this.search(value);
183+
this.selectedCompanies = this.search(value.name);
184184
}
185185

186-
search(value: string) {
187-
let filter = value.toLowerCase();
186+
search(value: Company) {
187+
let filter = value.name.toLowerCase();
188188
return this.companies.filter(comp => comp.name.toLowerCase().includes(filter));
189189
}
190190
}

src/environments/environment.dev.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export const environment = {
22
production: true,
3-
cannonUrl: 'https://cannon-staging.sinfo.org',
3+
//cannonUrl: 'https://cannon-staging.sinfo.org',
4+
cannonUrl: 'http://localhost:8090',
45
url_to_id: {
56
'28-sinfo': '28-sinfo',
67
'27-sinfo': '27-sinfo',

0 commit comments

Comments
 (0)