WEB-446: Validation of re-Age amount during submission
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { Currency } from '../models/general.model';
|
||||
import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
import { NgIf, CurrencyPipe } from '@angular/common';
|
||||
import { MatFormField, MatLabel, MatError, MatHint, MatSuffix } from '@angular/material/form-field';
|
||||
import { UntypedFormControl } from '@angular/forms';
|
||||
import { CurrencyPipe } from '@angular/common';
|
||||
import { MatHint } from '@angular/material/form-field';
|
||||
import { FormatAmountDirective } from '../../directives/format-amount.directive';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
@@ -22,6 +22,8 @@ export class InputAmountComponent {
|
||||
@Input() currency: Currency;
|
||||
@Input() inputLabel: string;
|
||||
@Input() inputFormControl: UntypedFormControl;
|
||||
@Input() minVal: number;
|
||||
@Input() maxVal: number;
|
||||
|
||||
displayHint = false;
|
||||
|
||||
@@ -39,12 +41,4 @@ export class InputAmountComponent {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
inputBlur(): void {
|
||||
this.displayHint = false;
|
||||
}
|
||||
|
||||
inputFocus(): void {
|
||||
this.displayHint = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user