Refactor input fields, converter selectors and error messages into their own components.
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone the build failed
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone the build failed
				
			This commit is contained in:
		
							parent
							
								
									62ba5a3357
								
							
						
					
					
						commit
						81db470a5a
					
				
					 16 changed files with 337 additions and 157 deletions
				
			
		|  | @ -1,18 +1,7 @@ | |||
| <div *ngFor="let step of steps" class="inputwrapper"> | ||||
|   <div class="textwrapper arrow_box"> | ||||
|     <textarea class="textinput" (keyup)="update(step)" placeholder="Please enter your input ..." | ||||
|               [(ngModel)]="step.content">{{step.content}}</textarea> | ||||
|   </div> | ||||
|   <div [ngClass]="{selectwrapper: true, error: step.error}"> | ||||
|     <div class="arrow_box"> | ||||
|       <select class="select" (change)="convert(step, $event)"> | ||||
|         <option id="undefined">Select conversion ...</option> | ||||
|         <option class="option" *ngFor="let c of converters" id="{{c.getId()}}">{{c.getDisplayname()}} | ||||
|         </option> | ||||
|       </select> | ||||
|     </div> | ||||
|   </div> | ||||
|   <div class="errormessage" *ngIf="step.error" [innerHTML]="step.message"></div> | ||||
|   <app-text-input-field [step]="step" #ti></app-text-input-field> | ||||
|   <app-converter-selector [step]="step" [textInput]="ti"></app-converter-selector> | ||||
|   <app-error-message [step]="step"></app-error-message> | ||||
| </div> | ||||
| <app-version></app-version> | ||||
| <!--<router-outlet></router-outlet>--> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue