Don't pass step variable, it is not necessary

This commit is contained in:
Manuel Friedli 2018-09-06 14:45:17 +02:00
parent 171691f7f7
commit 635b84fbd7
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<div [ngClass]="{selectwrapper: true, error: step.error}">
<div class="arrow_box">
<select class="select" (change)="convert(step, $event)">
<select class="select" (change)="convert($event)">
<option id="undefined">Select conversion ...</option>
<option class="option" *ngFor="let c of converters" id="{{c.getId()}}">{{c.getDisplayname()}}
</option>

View File

@ -19,9 +19,9 @@ export class ConverterSelectorComponent implements OnInit {
constructor(private converterRegistryService: ConverterRegistryService) {
}
convert(step: Step, $event: any): void {
step.selectedConverter = this.converterRegistryService.getConverter($event.target.selectedOptions[0].id);
this.textInput.update(step);
convert($event: any): void {
this.step.selectedConverter = this.converterRegistryService.getConverter($event.target.selectedOptions[0].id);
this.textInput.update(this.step);
}
ngOnInit() {