|
|
@ -29,7 +29,7 @@ import { |
|
|
UntypedFormBuilder, |
|
|
UntypedFormBuilder, |
|
|
UntypedFormGroup, |
|
|
UntypedFormGroup, |
|
|
ValidationErrors, |
|
|
ValidationErrors, |
|
|
ValidatorFn |
|
|
ValidatorFn, Validators |
|
|
} from '@angular/forms'; |
|
|
} from '@angular/forms'; |
|
|
import { Store } from '@ngrx/store'; |
|
|
import { Store } from '@ngrx/store'; |
|
|
import { AppState } from '@core/core.state'; |
|
|
import { AppState } from '@core/core.state'; |
|
|
@ -140,7 +140,7 @@ export class ApiUsageWidgetSettingsComponent extends WidgetSettingsComponent { |
|
|
|
|
|
|
|
|
protected onSettingsSet(settings: WidgetSettings) { |
|
|
protected onSettingsSet(settings: WidgetSettings) { |
|
|
this.apiUsageWidgetSettingsForm = this.fb.group({ |
|
|
this.apiUsageWidgetSettingsForm = this.fb.group({ |
|
|
dsEntityAliasId: [settings?.dsEntityAliasId], |
|
|
dsEntityAliasId: [settings?.dsEntityAliasId, Validators.required], |
|
|
apiUsageDataKeys: this.prepareDataKeysFormArray(settings?.apiUsageDataKeys), |
|
|
apiUsageDataKeys: this.prepareDataKeysFormArray(settings?.apiUsageDataKeys), |
|
|
targetDashboardState: [settings?.targetDashboardState], |
|
|
targetDashboardState: [settings?.targetDashboardState], |
|
|
background: [settings?.background, []], |
|
|
background: [settings?.background, []], |
|
|
|