UI: alarm table widget clear selection on entering edit mode
This commit is contained in:
parent
4025a1f549
commit
c40fbf7dd9
@ -11,7 +11,7 @@
|
||||
"resources": [],
|
||||
"templateHtml": "<tb-alarms-table-widget \n [ctx]=\"ctx\">\n</tb-alarms-table-widget>",
|
||||
"templateCss": "",
|
||||
"controllerScript": "self.onInit = function() {\n}\n\nself.onDataUpdated = function() {\n self.ctx.$scope.alarmsTableWidget.onDataUpdated();\n}\n\nself.actionSources = function() {\n return {\n 'actionCellButton': {\n name: 'widget-action.action-cell-button',\n multiple: true,\n hasShowCondition: true\n },\n 'rowClick': {\n name: 'widget-action.row-click',\n multiple: false\n }\n };\n}\n\nself.onDestroy = function() {\n}\n",
|
||||
"controllerScript": "self.onInit = function() {\n}\n\nself.onDataUpdated = function() {\n self.ctx.$scope.alarmsTableWidget.onDataUpdated();\n}\n\nself.onEditModeChanged = function() {\n self.ctx.$scope.alarmsTableWidget.onEditModeChanged();\n}\n\nself.actionSources = function() {\n return {\n 'actionCellButton': {\n name: 'widget-action.action-cell-button',\n multiple: true,\n hasShowCondition: true\n },\n 'rowClick': {\n name: 'widget-action.row-click',\n multiple: false\n }\n };\n}\n\nself.onDestroy = function() {\n}\n",
|
||||
"settingsSchema": "",
|
||||
"dataKeySettingsSchema": "",
|
||||
"settingsDirective": "tb-alarms-table-widget-settings",
|
||||
|
||||
@ -321,6 +321,12 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit,
|
||||
this.ctx.detectChanges();
|
||||
}
|
||||
|
||||
public onEditModeChanged() {
|
||||
if (this.alarmsDatasource.selection.hasValue()) {
|
||||
this.alarmsDatasource.clearSelection();
|
||||
}
|
||||
}
|
||||
|
||||
public pageLinkSortDirection(): SortDirection {
|
||||
return entityDataPageLinkSortDirection(this.pageLink);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user