mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
24 lines
442 B
JavaScript
24 lines
442 B
JavaScript
|
define([
|
||
|
'angular'
|
||
|
],
|
||
|
function (angular) {
|
||
|
'use strict';
|
||
|
|
||
|
var module = angular.module('kibana.controllers');
|
||
|
|
||
|
module.controller('InfluxTargetCtrl', function($scope) {
|
||
|
|
||
|
$scope.init = function() {
|
||
|
if (!$scope.target.function) {
|
||
|
$scope.target.function = 'mean';
|
||
|
}
|
||
|
};
|
||
|
|
||
|
$scope.duplicate = function() {
|
||
|
var clone = angular.copy($scope.target);
|
||
|
$scope.panel.targets.push(clone);
|
||
|
};
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|