Browse Source

UI: alarm table widget on edit mode if selection has value do not hide title panel with edit action

pull/9576/head
rusikv 3 years ago
parent
commit
b75704e6fe
  1. 5
      ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.ts

5
ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.ts

@ -322,8 +322,9 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit,
}
public onEditModeChanged() {
if (this.alarmsDatasource.selection.hasValue()) {
this.alarmsDatasource.clearSelection();
if (this.enableSelection && this.alarmsDatasource.selection.hasValue()) {
this.ctx.hideTitlePanel = !this.ctx.isEdit;
this.ctx.detectChanges(true);
}
}

Loading…
Cancel
Save