Просмотр исходного кода

stackdriver: reset query value on datasource changed

Erik Sundell 7 лет назад
Родитель
Сommit
3883643ea2
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      public/app/features/templating/editor_ctrl.ts

+ 1 - 0
public/app/features/templating/editor_ctrl.ts

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