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