mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
adds check for making datasource template variables children of other template variables (#5717)
This commit is contained in:
parent
4d40326706
commit
6d1dd95ab3
@ -166,7 +166,9 @@ function (angular, _, $, kbn) {
|
|||||||
if (otherVariable === updatedVariable) {
|
if (otherVariable === updatedVariable) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (templateSrv.containsVariable(otherVariable.query, updatedVariable.name) ||
|
if ((otherVariable.type === "datasource" &&
|
||||||
|
templateSrv.containsVariable(otherVariable.regex, updatedVariable.name)) ||
|
||||||
|
templateSrv.containsVariable(otherVariable.query, updatedVariable.name) ||
|
||||||
templateSrv.containsVariable(otherVariable.datasource, updatedVariable.name)) {
|
templateSrv.containsVariable(otherVariable.datasource, updatedVariable.name)) {
|
||||||
return self.updateOptions(otherVariable);
|
return self.updateOptions(otherVariable);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user