Showing
1 changed file
with
1 additions
and
5 deletions
@@ -29,8 +29,7 @@ import { | @@ -29,8 +29,7 @@ import { | ||
29 | Validators | 29 | Validators |
30 | } from '@angular/forms'; | 30 | } from '@angular/forms'; |
31 | import { | 31 | import { |
32 | - WidgetConfigComponentData, | ||
33 | - WidgetInfo | 32 | + WidgetConfigComponentData |
34 | } from '@home/models/widget-component.models'; | 33 | } from '@home/models/widget-component.models'; |
35 | import { Observable, of } from 'rxjs'; | 34 | import { Observable, of } from 'rxjs'; |
36 | import { Router } from '@angular/router'; | 35 | import { Router } from '@angular/router'; |
@@ -73,10 +72,8 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia | @@ -73,10 +72,8 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia | ||
73 | 72 | ||
74 | @ViewChild('mobileActionEditor', {static: false}) mobileActionEditor: MobileActionEditorComponent; | 73 | @ViewChild('mobileActionEditor', {static: false}) mobileActionEditor: MobileActionEditorComponent; |
75 | 74 | ||
76 | - | ||
77 | widgetActionFormGroup: FormGroup; | 75 | widgetActionFormGroup: FormGroup; |
78 | actionTypeFormGroup: FormGroup; | 76 | actionTypeFormGroup: FormGroup; |
79 | - widgetInfo: WidgetInfo; | ||
80 | 77 | ||
81 | isAdd: boolean; | 78 | isAdd: boolean; |
82 | action: WidgetActionDescriptorInfo; | 79 | action: WidgetActionDescriptorInfo; |
@@ -148,7 +145,6 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia | @@ -148,7 +145,6 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia | ||
148 | this.fb.control(action ? action.targetDashboardStateId : null, | 145 | this.fb.control(action ? action.targetDashboardStateId : null, |
149 | type === WidgetActionType.openDashboardState ? [Validators.required] : []) | 146 | type === WidgetActionType.openDashboardState ? [Validators.required] : []) |
150 | ); | 147 | ); |
151 | - | ||
152 | this.actionTypeFormGroup.addControl( | 148 | this.actionTypeFormGroup.addControl( |
153 | 'setEntityId', | 149 | 'setEntityId', |
154 | this.fb.control(action ? action.setEntityId : this.data.modelValue.widgetType === widgetType.static ? false : true , []) | 150 | this.fb.control(action ? action.setEntityId : this.data.modelValue.widgetType === widgetType.static ? false : true , []) |