feat(influxdb): added back fill option to editor, forgot to add it in the new updated query editor

This commit is contained in:
Torkel Ödegaard 2015-09-11 10:42:50 +02:00
parent 8174b9f041
commit 85baae1ebd
2 changed files with 22 additions and 0 deletions

View File

@ -112,6 +112,23 @@
<metric-segment-model property="groupBy.interval" get-options="getGroupByTimeIntervals()" on-change="get_data()">
</metric-segment>
</li>
<li class="dropdown" ng-if="groupBy.type === 'time'">
<a class="tight-form-item pointer" data-toggle="dropdown" bs-tooltip="'Insert missing values, important when stacking'" data-placement="right">
<span ng-show="target.fill">
fill ({{target.fill}})
</span>
<span ng-show="!target.fill">
no fill
</span>
</a>
<ul class="dropdown-menu">
<li><a ng-click="setFill('')">no fill</a></li>
<li><a ng-click="setFill('0')">fill (0)</a></li>
<li><a ng-click="setFill('null')">fill (null)</a></li>
<li><a ng-click="setFill('none')">fill (none)</a></li>
<li><a ng-click="setFill('previous')">fill (previous)</a></li>
</ul>
</li>
<li ng-if="groupBy.type === 'tag'">
<metric-segment-model property="groupBy.key" get-options="getTagOptions()" on-change="get_data()"></metric-segment>
</li>

View File

@ -199,6 +199,11 @@ function (angular, _, InfluxQueryBuilder) {
.then(null, $scope.handleQueryError);
};
$scope.setFill = function(fill) {
$scope.target.fill = fill;
$scope.get_data();
};
$scope.tagSegmentUpdated = function(segment, index) {
$scope.tagSegments[index] = segment;