mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
template: tweak to warning message
This commit is contained in:
parent
c1c241698a
commit
65910db991
@ -78,7 +78,7 @@ export class VariableEditorCtrl {
|
||||
}
|
||||
|
||||
if ($scope.current.type === 'query' && $scope.current.query.match(new RegExp('\\$' + $scope.current.name))) {
|
||||
$scope.appEvent('alert-warning', ['Validation', 'Query contains variable self-reference']);
|
||||
$scope.appEvent('alert-warning', ['Validation', 'Query cannot contain a reference to itself. Variable: $' + $scope.current.name]);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user