|
|
@ -45,6 +45,20 @@ export class CreateAssetProfileDialog implements OnInit, OnDestroy { |
|
|
|
public readonly formBuilder: FormBuilder |
|
|
|
) {} |
|
|
|
|
|
|
|
public get showCurrencyErrorMessage() { |
|
|
|
const addCurrencyFormControl = |
|
|
|
this.createAssetProfileForm.get('addCurrency'); |
|
|
|
|
|
|
|
if ( |
|
|
|
addCurrencyFormControl.hasError('minlength') || |
|
|
|
addCurrencyFormControl.hasError('maxlength') |
|
|
|
) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
public ngOnInit() { |
|
|
|
this.fetchAdminData(); |
|
|
|
|
|
|
@ -153,16 +167,4 @@ export class CreateAssetProfileDialog implements OnInit, OnDestroy { |
|
|
|
}, 300); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
get showCurrencyErrorMessage() { |
|
|
|
const addCurrencyFormControl = |
|
|
|
this.createAssetProfileForm.get('addCurrency'); |
|
|
|
if ( |
|
|
|
addCurrencyFormControl.hasError('minlength') || |
|
|
|
addCurrencyFormControl.hasError('maxlength') |
|
|
|
) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|