mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(table): minor fix to table panel and transform time series to aggregations
This commit is contained in:
@@ -45,8 +45,13 @@ export class TablePanelEditorCtrl {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.addColumn = function() {
|
$scope.addColumn = function() {
|
||||||
$scope.panel.columns.push({text: $scope.addColumnSegment.value, value: $scope.addColumnSegment.value});
|
var columns = transformers[$scope.panel.transform].getColumns($scope.dataRaw);
|
||||||
|
var column = _.findWhere(columns, {text: $scope.addColumnSegment.value});
|
||||||
|
|
||||||
|
if (column) {
|
||||||
|
$scope.panel.columns.push(column);
|
||||||
$scope.render();
|
$scope.render();
|
||||||
|
}
|
||||||
|
|
||||||
var plusButton = uiSegmentSrv.newPlusButton();
|
var plusButton = uiSegmentSrv.newPlusButton();
|
||||||
$scope.addColumnSegment.html = plusButton.html;
|
$scope.addColumnSegment.html = plusButton.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user