Skip to content

Commit

Permalink
Fix some whitespace & fix starting the project locally
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelmd committed Sep 14, 2019
1 parent c2a5657 commit a04ee61
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"ng": "ng",
"preinstall": "npm install -g @angular/cli",
"start": "ng serve --host localhost --port 5000",
"start:fake": "ng serve --env fake --host localhost --port 5000",
"start:local": "ng serve --env local --host localhost --port 5000",
"start:fake": "ng serve --configuration=fake --host localhost --port 5000",
"start:local": "ng serve --configuration=local --host localhost --port 5000",
"test": "ng test --watch=false --code-coverage",
"test:watch": "ng test --code-coverage"
},
Expand Down
86 changes: 43 additions & 43 deletions src/app/assets/containers/asset-detail/asset-detail.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,49 +100,49 @@ <h2>Adauga proprietati</h2>
</div>

<ng-template #editProperty>
<app-edit-solution
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isSolution()"
[crimeTypes]="crimeTypes$ | async"
[decisions]="decisions$ | async"
[institutions]="institutions$ | async"
[stages]="stages$ | async"
[precautionaryMeasures]="(precautionaryMeasures$ | async)"
[recoveryBeneficiaries]="(recoveryBeneficiaries$ | async)"
[solution]="assetProperty$ | async"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-solution>

<app-edit-storage
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isStorageSpace()"
[storageSpace]="assetProperty$ | async"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-storage>

<app-edit-address
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isAddress()"
[address]="(assetProperty$ | async)"
[counties]="(counties$ | async)"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-address>

<app-edit-defendant
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isDefendant()"
[defendant]="(assetProperty$ | async)"
[identifiers]="(identifiers$ | async)"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-defendant>
<app-edit-solution
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isSolution()"
[crimeTypes]="crimeTypes$ | async"
[decisions]="decisions$ | async"
[institutions]="institutions$ | async"
[stages]="stages$ | async"
[precautionaryMeasures]="(precautionaryMeasures$ | async)"
[recoveryBeneficiaries]="(recoveryBeneficiaries$ | async)"
[solution]="assetProperty$ | async"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-solution>

<app-edit-storage
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isStorageSpace()"
[storageSpace]="assetProperty$ | async"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-storage>

<app-edit-address
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isAddress()"
[address]="(assetProperty$ | async)"
[counties]="(counties$ | async)"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-address>

<app-edit-defendant
class="asset-details-card mat-elevation-z8"
*ngIf="(assetProperty$ | async)?.isDefendant()"
[defendant]="(assetProperty$ | async)"
[identifiers]="(identifiers$ | async)"
(onUpdate)="onPropertyUpdate($event)"
(onCancel)="onPropertyCancel($event)"
(onSave)="onPropertySave($event)"
></app-edit-defendant>
</ng-template>
</section>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class AssetDetailComponent implements OnInit {
this.addresses$ = this.store.pipe(select(fromStore.getAllAddressesForAssetId(theId)));
});

// Initialize each asset property form as view
// Initialize each property state in view mode
this.defendants$.subscribe(defendants => defendants
.forEach(defendant => this.propertyStates[defendant.id] = AssetDetailState.View));

Expand Down

0 comments on commit a04ee61

Please sign in to comment.