Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Code review cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudNiner committed Dec 22, 2017
1 parent 336e1b7 commit 70cf0a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class RiskWizardComponent implements AfterViewInit, OnDestroy, OnInit {
constructor(private session: WizardSessionService<Risk>) {}

ngOnInit() {
// TODO: Set initial risk from API
// TODO (#324): Set initial risk from API
const risk = new Risk({
communitySystem: { name: '' },
weatherEvent: { name: '' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="step-header">
<h3>Hazard</h3>
<h5>{{ risk.hazard }}</h5>
<h5>{{ risk.weatherEvent?.name }}</h5>
</div>
<div class="step-content">
<form [formGroup]="form">
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h3>Identify risk</h3>
</div>
<div class="step-content">
<p>Match a hazard to a subset of people, strucutres or assets (sometimes referred to as a "community system") that the selected hazard may impact</p>
<p>Match a hazard to a subset of people, structures or assets (sometimes referred to as a "community system") that the selected hazard may impact</p>
<form [formGroup]="form">
<div class="step-form-control">
<label for="">Hazard</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';

import { Risk } from '../../shared/';
import { IdentifyStepFormModel } from './identify-step-form.model';
import { WizardStepComponent } from '../wizard-step.component';
import { RiskStepKey } from '../risk-step-key';
import { WizardSessionService } from '../wizard-session.service';

interface IdentifyStepFormModel {
hazard: string;
communitySystem: string;
}

@Component({
selector: 'app-risk-step-identify',
templateUrl: 'identify-step.component.html'
})

export class IdentifyStepComponent extends WizardStepComponent<Risk> implements OnInit {

public form: FormGroup;
Expand Down

0 comments on commit 70cf0a8

Please sign in to comment.