Browse Source

Fixed disabling update button based on filters change (#14669)

pull/14678/head
Maksym Tsymbarov 9 months ago
committed by GitHub
parent
commit
934b54180b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      ui-ngx/src/app/modules/home/components/alarm-rules/alarm-rule-filter-config.component.ts
  2. 1
      ui-ngx/src/app/modules/home/components/alarm/alarm-filter-config.component.ts
  3. 2
      ui-ngx/src/app/modules/home/components/audit-log/audit-log-filter.component.ts
  4. 1
      ui-ngx/src/app/modules/home/components/calculated-fields/table-header/calculated-fields-filter-config.component.ts
  5. 1
      ui-ngx/src/app/modules/home/components/device/device-info-filter.component.ts

1
ui-ngx/src/app/modules/home/components/alarm-rules/alarm-rule-filter-config.component.ts

@ -196,6 +196,7 @@ export class AlarmRuleFilterConfigComponent implements OnInit, ControlValueAcces
cancel() { cancel() {
this.updateAlarmRuleConfigForm(this.alarmRuleFilterConfig); this.updateAlarmRuleConfigForm(this.alarmRuleFilterConfig);
this.alarmRuleFilterConfigForm.markAsPristine();
if (this.overlayRef) { if (this.overlayRef) {
this.overlayRef.dispose(); this.overlayRef.dispose();
} else { } else {

1
ui-ngx/src/app/modules/home/components/alarm/alarm-filter-config.component.ts

@ -224,6 +224,7 @@ export class AlarmFilterConfigComponent implements OnInit, OnDestroy, ControlVal
cancel() { cancel() {
this.updateAlarmConfigForm(this.alarmFilterConfig); this.updateAlarmConfigForm(this.alarmFilterConfig);
this.alarmFilterConfigForm.markAsPristine();
if (this.overlayRef) { if (this.overlayRef) {
this.overlayRef.dispose(); this.overlayRef.dispose();
} else { } else {

2
ui-ngx/src/app/modules/home/components/audit-log/audit-log-filter.component.ts

@ -163,11 +163,13 @@ export class AuditLogFilterComponent implements OnInit, ControlValueAccessor {
cancel() { cancel() {
this.updateAuditLogFilterForm(this.auditLogFilter); this.updateAuditLogFilterForm(this.auditLogFilter);
this.auditLogFilterForm.markAsPristine();
this.auditLogOverlayRef.dispose(); this.auditLogOverlayRef.dispose();
} }
update() { update() {
this.auditLogFilterUpdated(this.auditLogFilterForm.value); this.auditLogFilterUpdated(this.auditLogFilterForm.value);
this.auditLogFilterForm.markAsPristine();
this.auditLogOverlayRef.dispose(); this.auditLogOverlayRef.dispose();
} }

1
ui-ngx/src/app/modules/home/components/calculated-fields/table-header/calculated-fields-filter-config.component.ts

@ -204,6 +204,7 @@ export class CalculatedFieldsFilterConfigComponent implements OnInit, ControlVal
cancel() { cancel() {
this.updateCfConfigForm(this.cfFilterConfig); this.updateCfConfigForm(this.cfFilterConfig);
this.cfFilterForm.markAsPristine();
if (this.overlayRef) { if (this.overlayRef) {
this.overlayRef.dispose(); this.overlayRef.dispose();
} else { } else {

1
ui-ngx/src/app/modules/home/components/device/device-info-filter.component.ts

@ -196,6 +196,7 @@ export class DeviceInfoFilterComponent implements OnInit, ControlValueAccessor {
cancel() { cancel() {
this.updateDeviceInfoFilterForm(this.deviceInfoFilter); this.updateDeviceInfoFilterForm(this.deviceInfoFilter);
this.deviceInfoFilterForm.markAsPristine();
if (this.overlayRef) { if (this.overlayRef) {
this.overlayRef.dispose(); this.overlayRef.dispose();
} else { } else {

Loading…
Cancel
Save