UI: alarm table widget clear selection on entering edit mode
This commit is contained in:
parent
4025a1f549
commit
c40fbf7dd9
@ -11,7 +11,7 @@
|
|||||||
"resources": [],
|
"resources": [],
|
||||||
"templateHtml": "<tb-alarms-table-widget \n [ctx]=\"ctx\">\n</tb-alarms-table-widget>",
|
"templateHtml": "<tb-alarms-table-widget \n [ctx]=\"ctx\">\n</tb-alarms-table-widget>",
|
||||||
"templateCss": "",
|
"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": "",
|
"settingsSchema": "",
|
||||||
"dataKeySettingsSchema": "",
|
"dataKeySettingsSchema": "",
|
||||||
"settingsDirective": "tb-alarms-table-widget-settings",
|
"settingsDirective": "tb-alarms-table-widget-settings",
|
||||||
|
|||||||
@ -321,6 +321,12 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit,
|
|||||||
this.ctx.detectChanges();
|
this.ctx.detectChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public onEditModeChanged() {
|
||||||
|
if (this.alarmsDatasource.selection.hasValue()) {
|
||||||
|
this.alarmsDatasource.clearSelection();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public pageLinkSortDirection(): SortDirection {
|
public pageLinkSortDirection(): SortDirection {
|
||||||
return entityDataPageLinkSortDirection(this.pageLink);
|
return entityDataPageLinkSortDirection(this.pageLink);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user