Add grafana notification type

This commit is contained in:
Sebastian
2019-01-20 13:51:23 +01:00
parent d0af952685
commit 4058d18593
8 changed files with 201 additions and 3 deletions

View File

@@ -256,7 +256,11 @@ export default ['Rest', 'Wait',
if (field.type === 'textarea') {
if (field.name === 'headers') {
$scope[i] = JSON.parse($scope[i]);
} else {
}
else if (field.name === 'annotation_tags' && $scope.notification_type.value === "grafana" && value === null) {
$scope[i] = null;
}
else {
$scope[i] = $scope[i].toString().split('\n');
}
}