Browse Source

UI: Refactoring

pull/12848/head
Artem Dzhereleiko 2 years ago
parent
commit
04c7160e73
  1. 8
      ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.ts

8
ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.ts

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

Loading…
Cancel
Save