|
|
@ -73,6 +73,17 @@ export class GfCreateAssetProfileDialogComponent implements OnInit { |
|
|
public readonly formBuilder: FormBuilder |
|
|
public readonly formBuilder: FormBuilder |
|
|
) {} |
|
|
) {} |
|
|
|
|
|
|
|
|
|
|
|
public get showCurrencyErrorMessage() { |
|
|
|
|
|
const addCurrencyFormControl = |
|
|
|
|
|
this.createAssetProfileForm.controls.addCurrency; |
|
|
|
|
|
|
|
|
|
|
|
if (addCurrencyFormControl.hasError('invalidCurrency')) { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public ngOnInit() { |
|
|
public ngOnInit() { |
|
|
this.initialize(); |
|
|
this.initialize(); |
|
|
|
|
|
|
|
|
@ -148,17 +159,6 @@ export class GfCreateAssetProfileDialogComponent implements OnInit { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public get showCurrencyErrorMessage() { |
|
|
|
|
|
const addCurrencyFormControl = |
|
|
|
|
|
this.createAssetProfileForm.controls.addCurrency; |
|
|
|
|
|
|
|
|
|
|
|
if (addCurrencyFormControl.hasError('invalidCurrency')) { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private atLeastOneValid(control: CreateAssetProfileForm): ValidationErrors { |
|
|
private atLeastOneValid(control: CreateAssetProfileForm): ValidationErrors { |
|
|
const addCurrencyControl = control.controls.addCurrency; |
|
|
const addCurrencyControl = control.controls.addCurrency; |
|
|
const addSymbolControl = control.controls.addSymbol; |
|
|
const addSymbolControl = control.controls.addSymbol; |
|
|
|