UI: Refactoring

This commit is contained in:
Artem Dzhereleiko 2025-03-07 15:01:40 +02:00
parent fd8d3fbf62
commit 04c7160e73

View File

@ -14,7 +14,7 @@
/// limitations under the License.
///
import { Component, DestroyRef, Inject, OnDestroy, OnInit, SkipSelf, ViewChild } from '@angular/core';
import { Component, DestroyRef, Inject, OnInit, SkipSelf, ViewChild } from '@angular/core';
import { ErrorStateMatcher } from '@angular/material/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { Store } from '@ngrx/store';
@ -69,7 +69,7 @@ export interface WidgetActionDialogData {
styleUrls: []
})
export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDialogComponent,
WidgetActionDescriptorInfo> implements OnInit, OnDestroy, ErrorStateMatcher {
WidgetActionDescriptorInfo> implements OnInit, ErrorStateMatcher {
widgetActionFormGroup: FormGroup;
@ -169,10 +169,6 @@ export class WidgetActionDialogComponent extends DialogComponent<WidgetActionDia
});
}
ngOnDestroy() {
super.ngOnDestroy();
}
widgetHeaderButtonValidators() {
const buttonType = this.widgetActionFormGroup.get('buttonType').value;
this.widgetActionFormGroup.get('showIcon').disable({emitEvent: false});