mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: make sure default template query editor state is propagted to parent angular scope
This commit is contained in:
@@ -106,6 +106,11 @@ export class VariableEditorCtrl {
|
||||
});
|
||||
};
|
||||
|
||||
$scope.onQueryChange = value => {
|
||||
$scope.current.query = value;
|
||||
$scope.runQuery();
|
||||
};
|
||||
|
||||
$scope.edit = variable => {
|
||||
$scope.current = variable;
|
||||
$scope.currentIsNew = false;
|
||||
@@ -173,8 +178,9 @@ export class VariableEditorCtrl {
|
||||
};
|
||||
|
||||
$scope.datasourceChanged = async () => {
|
||||
$scope.currentDatasource = await datasourceSrv.get($scope.current.datasource);
|
||||
console.log($scope.currentDatasource);
|
||||
datasourceSrv.get($scope.current.datasource).then(ds => {
|
||||
$scope.currentDatasource = ds;
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user