|
@ -24,7 +24,9 @@ import { AdminService } from '@ghostfolio/client/services/admin.service'; |
|
|
templateUrl: 'create-asset-profile-dialog.html' |
|
|
templateUrl: 'create-asset-profile-dialog.html' |
|
|
}) |
|
|
}) |
|
|
export class CreateAssetProfileDialog implements OnInit, OnDestroy { |
|
|
export class CreateAssetProfileDialog implements OnInit, OnDestroy { |
|
|
private atLeastOneValid = (control: AbstractControl): ValidationErrors | null => { |
|
|
private atLeastOneValid = ( |
|
|
|
|
|
control: AbstractControl |
|
|
|
|
|
): ValidationErrors | null => { |
|
|
const addSymbolControl = control.get('addSymbol'); |
|
|
const addSymbolControl = control.get('addSymbol'); |
|
|
const searchSymbolControl = control.get('searchSymbol'); |
|
|
const searchSymbolControl = control.get('searchSymbol'); |
|
|
|
|
|
|
|
@ -38,7 +40,7 @@ export class CreateAssetProfileDialog implements OnInit, OnDestroy { |
|
|
searchSymbolControl.valid || |
|
|
searchSymbolControl.valid || |
|
|
addSymbolControl.valid |
|
|
addSymbolControl.valid |
|
|
) { |
|
|
) { |
|
|
return { atLeastOneValid: false }; |
|
|
return { atLeastOneValid: false }; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return { atLeastOneValid: true }; |
|
|
return { atLeastOneValid: true }; |
|
@ -93,5 +95,3 @@ export class CreateAssetProfileDialog implements OnInit, OnDestroy { |
|
|
|
|
|
|
|
|
public ngOnDestroy() {} |
|
|
public ngOnDestroy() {} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|