diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.html index 7b6939df52..05ea8a84a1 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.html @@ -21,7 +21,7 @@

{{'widget.add' | translate}}:

{{data.widgetInfo.widgetName}}
- {{ 'widget.basic-mode' | translate }} {{ 'widget.advanced-mode' | translate }} @@ -36,13 +36,14 @@
- diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.ts index 67c1551d9d..ffc453c42a 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/add-widget-dialog.component.ts @@ -14,7 +14,7 @@ /// limitations under the License. /// -import { Component, Inject, OnInit, SkipSelf, ViewEncapsulation } from '@angular/core'; +import { Component, Inject, OnInit, SkipSelf, ViewChild, ViewEncapsulation } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Store } from '@ngrx/store'; @@ -28,6 +28,7 @@ import { IAliasController, IStateController } from '@core/api/widget-api.models' import { WidgetConfigComponentData, WidgetInfo } from '@home/models/widget-component.models'; import { isDefined, isDefinedAndNotNull, isString } from '@core/utils'; import { TranslateService } from '@ngx-translate/core'; +import { WidgetConfigComponent } from '@home/components/widget/widget-config.component'; export interface AddWidgetDialogData { dashboard: Dashboard; @@ -47,7 +48,8 @@ export interface AddWidgetDialogData { export class AddWidgetDialogComponent extends DialogComponent implements OnInit, ErrorStateMatcher { - widgetConfigModes = WidgetConfigMode; + @ViewChild('widgetConfigComponent') + widgetConfigComponent: WidgetConfigComponent; widgetFormGroup: UntypedFormGroup; @@ -60,17 +62,17 @@ export class AddWidgetDialogComponent extends DialogComponent
- + {{ 'widget.basic-mode' | translate }} {{ 'widget.advanced-mode' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html index 86f069239c..f4cd14e6e5 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html @@ -18,12 +18,12 @@