stackdriver: reset query value on datasource changed

This commit is contained in:
Erik Sundell 2018-11-01 10:17:39 +01:00
parent fcf39a0839
commit 3883643ea2

View File

@ -180,6 +180,7 @@ export class VariableEditorCtrl {
$scope.datasourceChanged = async () => {
datasourceSrv.get($scope.current.datasource).then(ds => {
$scope.current.query = '';
$scope.currentDatasource = ds;
});
};